8 new, 2 modified patches.
[webos-internals:imagineer1981s-modifications.git] / browser / browser-add-shortcut-keys.patch
1 Name: Shorcut-keys-In-Browser
2 Version: 1.3.5-2
3 Author: Fritos1406
4 Description: Adds shorcut keys to the launcher. Hold onto Gesture+key to execute
5 New Card: Gesture+n
6 Add Bookmark: Gesture+m
7 Add To Launcher: Gesture+l
8 Bookmarks: Gesture+b
9 History: Gesture+h
10 Share Page: Gesture+s
11 Refresh Page: GEsture+r
12
13 --- .orig/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
14 +++ /usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js
15 @@ -787,8 +787,8 @@
16                 this.appMenuModel = {
17                         visible: true,
18                         items: [
19 -                               MenuData.ApplicationMenu.NewCard,
20 -                               MenuData.ApplicationMenu.AddBookmark,
21 +                               {label:$L('New Card'),     shortcut:'n', command:'new-page-cmd'},
22 +                               {label:$L('Add Bookmark'),     shortcut:'m', command:'add-bookmark-cmd'},
23                                 {
24                                         label: $L("Page"),
25                                         items: [
26 @@ -792,8 +792,10 @@
27                                 {
28                                         label: $L("Page"),
29                                         items: [
30 -                                               MenuData.ApplicationMenu.AddToLauncher,
31 -                                               MenuData.ApplicationMenu.SharePage]
32 +                                               {label:$L('Add To Launcher'),     shortcut:'l', command:'add-launch-icon-cmd'},
33 +                                               {label:$L('Share Page'),     shortcut:'s', command:'share-page-cmd'},
34 +                       {label:$L('Refresh Page'),     shortcut:'r', command:'refresh'},
35 +                           ]
36                                 },
37                                 MenuData.ApplicationMenu.ShowBookmarks,
38                                 MenuData.ApplicationMenu.ShowHistory]
39 @@ -795,8 +796,9 @@
40                                                 MenuData.ApplicationMenu.AddToLauncher,
41                                                 MenuData.ApplicationMenu.SharePage]
42                                 },
43 -                               MenuData.ApplicationMenu.ShowBookmarks,
44 -                               MenuData.ApplicationMenu.ShowHistory]
45 +                               {label:$L('Bookmarks'),     shortcut:'b', command:'show-bookmarks-cmd'},
46 +                               {label:$L('History'),     shortcut:'h', command:'show-history-cmd'},
47 +                           ]
48                 };
49  
50                 this.controller.setupWidget(Mojo.Menu.appMenu, undefined, this.appMenuModel);