updates and additions
[webos-internals:modifications.git] / browser / browser-add-shortcut-keys.patch
1 diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
2 index 388cffc..df4d251 100644
3 --- a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
5 @@ -791,16 +791,19 @@ PageAssistant.prototype._setupMenus = function() {
6                 this.appMenuModel = {
7                         visible: true,
8                         items: [
9 -                               MenuData.ApplicationMenu.NewCard,
10 -                               MenuData.ApplicationMenu.AddBookmark,
11 +                               {label:$L('New Card'), shortcut:'n', command:'new-page-cmd'},
12 +                               {label:$L('Add Bookmark'), shortcut:'m', command:'add-bookmark-cmd'},
13                                 {
14                                         label: $L("Page"),
15                                         items: [
16 -                                               MenuData.ApplicationMenu.AddToLauncher,
17 -                                               MenuData.ApplicationMenu.SharePage]
18 +                                               {label:$L('Add To Launcher'), shortcut:'l', command:'add-launch-icon-cmd'},
19 +                                               {label:$L('Share Page'), shortcut:'s', command:'share-page-cmd'},
20 +                                               {label:$L('Refresh Page'), shortcut:'r', command:'refresh'},
21 +                    ]
22                                 },
23 -                               MenuData.ApplicationMenu.ShowBookmarks,
24 -                               MenuData.ApplicationMenu.ShowHistory]
25 +                               {label:$L('Bookmarks'),     shortcut:'b', command:'show-bookmarks-cmd'},
26 +                               {label:$L('History'),     shortcut:'h', command:'show-history-cmd'},
27 +                           ]
28                 };
29  
30                 this.controller.setupWidget(Mojo.Menu.appMenu, undefined, this.appMenuModel);