|
1 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 #ifdef XP_UNIX |
|
7 #ifndef XP_MACOSX |
|
8 #define XP_GNOME 1 |
|
9 #endif |
|
10 #endif |
|
11 |
|
12 <stringbundleset id="stringbundleset"> |
|
13 <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/> |
|
14 <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/> |
|
15 <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/> |
|
16 </stringbundleset> |
|
17 |
|
18 <commandset id="mainCommandSet"> |
|
19 <command id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/> |
|
20 <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" /> |
|
21 <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" /> |
|
22 |
|
23 <command id="cmd_newNavigatorTab" oncommand="BrowserOpenNewTabOrWindow(event);"/> |
|
24 <command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/> |
|
25 <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/> |
|
26 |
|
27 <command id="Browser:SendLink" |
|
28 oncommand="MailIntegration.sendLinkForWindow(window.content);"/> |
|
29 |
|
30 <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/> |
|
31 <command id="cmd_print" oncommand="PrintUtils.print();"/> |
|
32 <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/> |
|
33 <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/> |
|
34 <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/> |
|
35 <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/> |
|
36 <command id="cmd_quitApplication" oncommand="goQuitApplication()"/> |
|
37 |
|
38 |
|
39 <commandset id="editMenuCommands"/> |
|
40 |
|
41 <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/> |
|
42 <command id="View:PageInfo" oncommand="BrowserPageInfo();"/> |
|
43 <command id="View:FullScreen" oncommand="BrowserFullScreen();"/> |
|
44 <command id="cmd_find" |
|
45 oncommand="gFindBar.onFindCommand();" |
|
46 observes="isImage"/> |
|
47 <command id="cmd_findAgain" |
|
48 oncommand="gFindBar.onFindAgainCommand(false);" |
|
49 observes="isImage"/> |
|
50 <command id="cmd_findPrevious" |
|
51 oncommand="gFindBar.onFindAgainCommand(true);" |
|
52 observes="isImage"/> |
|
53 #ifdef XP_MACOSX |
|
54 <command id="cmd_findSelection" oncommand="gFindBar.onFindSelectionCommand();"/> |
|
55 #endif |
|
56 <!-- work-around bug 392512 --> |
|
57 <command id="Browser:AddBookmarkAs" |
|
58 oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/> |
|
59 <!-- The command disabled state must be manually updated through |
|
60 PlacesCommandHook.updateBookmarkAllTabsCommand() --> |
|
61 <command id="Browser:BookmarkAllTabs" |
|
62 oncommand="PlacesCommandHook.bookmarkCurrentPages();"/> |
|
63 <command id="Browser:Home" oncommand="BrowserHome();"/> |
|
64 <command id="Browser:Back" oncommand="BrowserBack();" disabled="true"/> |
|
65 <command id="Browser:BackOrBackDuplicate" oncommand="BrowserBack(event);" disabled="true"> |
|
66 <observes element="Browser:Back" attribute="disabled"/> |
|
67 </command> |
|
68 <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/> |
|
69 <command id="Browser:ForwardOrForwardDuplicate" oncommand="BrowserForward(event);" disabled="true"> |
|
70 <observes element="Browser:Forward" attribute="disabled"/> |
|
71 </command> |
|
72 <command id="Browser:Stop" oncommand="BrowserStop();" disabled="true"/> |
|
73 <command id="Browser:Reload" oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/> |
|
74 <command id="Browser:ReloadOrDuplicate" oncommand="BrowserReloadOrDuplicate(event)" disabled="true"> |
|
75 <observes element="Browser:Reload" attribute="disabled"/> |
|
76 </command> |
|
77 <command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true"> |
|
78 <observes element="Browser:Reload" attribute="disabled"/> |
|
79 </command> |
|
80 <command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/> |
|
81 <command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/> |
|
82 <command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/> |
|
83 <command id="Browser:ToggleTabView" oncommand="TabView.toggle();"/> |
|
84 <command id="Browser:FocusNextFrame" oncommand="focusNextFrame(event);"/> |
|
85 <command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/> |
|
86 <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/> |
|
87 <command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/> |
|
88 <command id="cmd_fullZoomToggle" oncommand="ZoomManager.toggleZoom();"/> |
|
89 <command id="cmd_gestureRotateLeft" oncommand="gGestureSupport.rotate(event.sourceEvent)"/> |
|
90 <command id="cmd_gestureRotateRight" oncommand="gGestureSupport.rotate(event.sourceEvent)"/> |
|
91 <command id="cmd_gestureRotateEnd" oncommand="gGestureSupport.rotateEnd()"/> |
|
92 <command id="Browser:OpenLocation" oncommand="openLocation();"/> |
|
93 <command id="Browser:RestoreLastSession" oncommand="restoreLastSession();" disabled="true"/> |
|
94 |
|
95 <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/> |
|
96 <command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/> |
|
97 <command id="Tools:DevToolbox" oncommand="gDevToolsBrowser.toggleToolboxCommand(gBrowser);"/> |
|
98 <command id="Tools:DevToolbar" oncommand="DeveloperToolbar.toggle();" disabled="true" hidden="true"/> |
|
99 <command id="Tools:DevToolbarFocus" oncommand="DeveloperToolbar.focusToggle();" disabled="true"/> |
|
100 <command id="Tools:DevAppMgr" oncommand="gDevToolsBrowser.openAppManager(gBrowser);" disabled="true" hidden="true"/> |
|
101 <command id="Tools:BrowserToolbox" oncommand="BrowserToolboxProcess.init();" disabled="true" hidden="true"/> |
|
102 <command id="Tools:BrowserConsole" oncommand="HUDService.toggleBrowserConsole();"/> |
|
103 <command id="Tools:Scratchpad" oncommand="Scratchpad.openScratchpad();"/> |
|
104 <command id="Tools:ResponsiveUI" oncommand="ResponsiveUI.toggle();"/> |
|
105 <command id="Tools:Eyedropper" oncommand="openEyedropper();"/> |
|
106 <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/> |
|
107 <command id="Tools:ErrorConsole" oncommand="toJavaScriptConsole()" disabled="true" hidden="true"/> |
|
108 <command id="Tools:DevToolsConnect" oncommand="gDevToolsBrowser.openConnectScreen(gBrowser)" disabled="true" hidden="true"/> |
|
109 <command id="Tools:Sanitize" |
|
110 oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window);"/> |
|
111 <command id="Tools:PrivateBrowsing" |
|
112 oncommand="OpenBrowserWindow({private: true});"/> |
|
113 <command id="Tools:RemoteWindow" |
|
114 oncommand="OpenBrowserWindow({remote: true});"/> |
|
115 <command id="Tools:NonRemoteWindow" |
|
116 oncommand="OpenBrowserWindow({remote: false});"/> |
|
117 <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/> |
|
118 <command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/> |
|
119 <command id="Social:SharePage" oncommand="SocialShare.sharePage();" disabled="true"/> |
|
120 <command id="Social:ToggleSidebar" oncommand="SocialSidebar.toggleSidebar();" hidden="true"/> |
|
121 <command id="Social:ToggleNotifications" oncommand="Social.toggleNotifications();" hidden="true"/> |
|
122 <command id="Social:FocusChat" oncommand="SocialChatBar.focus();" hidden="true" disabled="true"/> |
|
123 <command id="Social:Addons" oncommand="BrowserOpenAddonsMgr('addons://list/service');"/> |
|
124 </commandset> |
|
125 |
|
126 <commandset id="placesCommands"> |
|
127 <command id="Browser:ShowAllBookmarks" |
|
128 oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/> |
|
129 <command id="Browser:ShowAllHistory" |
|
130 oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/> |
|
131 </commandset> |
|
132 |
|
133 <broadcasterset id="mainBroadcasterSet"> |
|
134 <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;" |
|
135 type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul" |
|
136 oncommand="toggleSidebar('viewBookmarksSidebar');"/> |
|
137 |
|
138 <!-- for both places and non-places, the sidebar lives at |
|
139 chrome://browser/content/history/history-panel.xul so there are no |
|
140 problems when switching between versions --> |
|
141 <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;" |
|
142 type="checkbox" group="sidebar" |
|
143 sidebarurl="chrome://browser/content/history/history-panel.xul" |
|
144 oncommand="toggleSidebar('viewHistorySidebar');"/> |
|
145 |
|
146 <broadcaster id="viewWebPanelsSidebar" autoCheck="false" |
|
147 type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul" |
|
148 oncommand="toggleSidebar('viewWebPanelsSidebar');"/> |
|
149 |
|
150 <broadcaster id="bookmarkThisPageBroadcaster" |
|
151 label="&bookmarkThisPageCmd.label;" |
|
152 bookmarklabel="&bookmarkThisPageCmd.label;" |
|
153 editlabel="&editThisBookmarkCmd.label;"/> |
|
154 |
|
155 <!-- popup blocking menu items --> |
|
156 <broadcaster id="blockedPopupAllowSite" |
|
157 accesskey="&allowPopups.accesskey;" |
|
158 oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/> |
|
159 <broadcaster id="blockedPopupEditSettings" |
|
160 #ifdef XP_WIN |
|
161 label="&editPopupSettings.label;" |
|
162 #else |
|
163 label="&editPopupSettingsUnix.label;" |
|
164 #endif |
|
165 accesskey="&editPopupSettings.accesskey;" |
|
166 oncommand="gPopupBlockerObserver.editPopupSettings();"/> |
|
167 <broadcaster id="blockedPopupDontShowMessage" |
|
168 accesskey="&dontShowMessage.accesskey;" |
|
169 type="checkbox" |
|
170 oncommand="gPopupBlockerObserver.dontShowMessage();"/> |
|
171 <broadcaster id="blockedPopupsSeparator"/> |
|
172 <broadcaster id="isImage"/> |
|
173 <broadcaster id="isFrameImage"/> |
|
174 <broadcaster id="singleFeedMenuitemState" disabled="true"/> |
|
175 <broadcaster id="multipleFeedsMenuState" hidden="true"/> |
|
176 <broadcaster id="tabviewGroupsNumber" groups="1"/> |
|
177 #ifdef MOZ_SERVICES_SYNC |
|
178 <broadcaster id="sync-setup-state"/> |
|
179 <broadcaster id="sync-syncnow-state" hidden="true"/> |
|
180 <broadcaster id="sync-reauth-state" hidden="true"/> |
|
181 #endif |
|
182 <broadcaster id="workOfflineMenuitemState"/> |
|
183 <broadcaster id="socialSidebarBroadcaster" hidden="true"/> |
|
184 |
|
185 <!-- DevTools broadcasters --> |
|
186 <broadcaster id="devtoolsMenuBroadcaster_DevToolbox" |
|
187 label="&devToolboxMenuItem.label;" |
|
188 type="checkbox" autocheck="false" |
|
189 command="Tools:DevToolbox" |
|
190 key="key_devToolboxMenuItem"/> |
|
191 <broadcaster id="devtoolsMenuBroadcaster_DevToolbar" |
|
192 label="&devToolbarMenu.label;" |
|
193 type="checkbox" autocheck="false" |
|
194 command="Tools:DevToolbar" |
|
195 key="key_devToolbar"/> |
|
196 <broadcaster id="devtoolsMenuBroadcaster_DevAppMgr" |
|
197 label="&devAppMgrMenu.label;" |
|
198 command="Tools:DevAppMgr"/> |
|
199 <broadcaster id="devtoolsMenuBroadcaster_BrowserToolbox" |
|
200 label="&browserToolboxMenu.label;" |
|
201 command="Tools:BrowserToolbox"/> |
|
202 <broadcaster id="devtoolsMenuBroadcaster_BrowserConsole" |
|
203 label="&browserConsoleCmd.label;" |
|
204 key="key_browserConsole" |
|
205 command="Tools:BrowserConsole"/> |
|
206 <broadcaster id="devtoolsMenuBroadcaster_Scratchpad" |
|
207 label="&scratchpad.label;" |
|
208 command="Tools:Scratchpad" |
|
209 key="key_scratchpad"/> |
|
210 <broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI" |
|
211 label="&responsiveDesignTool.label;" |
|
212 type="checkbox" autocheck="false" |
|
213 command="Tools:ResponsiveUI" |
|
214 key="key_responsiveUI"/> |
|
215 <broadcaster id="devtoolsMenuBroadcaster_Eyedropper" |
|
216 label="&eyedropper.label;" |
|
217 type="checkbox" autocheck="false" |
|
218 command="Tools:Eyedropper"/> |
|
219 <broadcaster id="devtoolsMenuBroadcaster_PageSource" |
|
220 label="&pageSourceCmd.label;" |
|
221 key="key_viewSource" |
|
222 command="View:PageSource"/> |
|
223 <broadcaster id="devtoolsMenuBroadcaster_ErrorConsole" |
|
224 label="&errorConsoleCmd.label;" |
|
225 command="Tools:ErrorConsole"/> |
|
226 <broadcaster id="devtoolsMenuBroadcaster_GetMoreTools" |
|
227 label="&getMoreDevtoolsCmd.label;" |
|
228 oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/> |
|
229 <broadcaster id="devtoolsMenuBroadcaster_connect" |
|
230 label="&devtoolsConnect.label;" |
|
231 command="Tools:DevToolsConnect"/> |
|
232 </broadcasterset> |
|
233 |
|
234 <keyset id="mainKeyset"> |
|
235 <key id="key_newNavigator" |
|
236 key="&newNavigatorCmd.key;" |
|
237 command="cmd_newNavigator" |
|
238 modifiers="accel"/> |
|
239 <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/> |
|
240 <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation" |
|
241 modifiers="accel"/> |
|
242 #ifndef XP_MACOSX |
|
243 <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation" |
|
244 modifiers="alt"/> |
|
245 #endif |
|
246 |
|
247 # |
|
248 # Search Command Key Logic works like this: |
|
249 # |
|
250 # Unix: Ctrl+K (cross platform binding) |
|
251 # Ctrl+J (in case of emacs Ctrl-K conflict) |
|
252 # Mac: Cmd+K (cross platform binding) |
|
253 # Cmd+Opt+F (platform convention) |
|
254 # Win: Ctrl+K (cross platform binding) |
|
255 # Ctrl+E (IE compat) |
|
256 # |
|
257 # We support Ctrl+K on all platforms now and advertise it in the menu since it is |
|
258 # our standard - it is a "safe" choice since it is near no harmful keys like "W" as |
|
259 # "E" is. People mourning the loss of Ctrl+K for emacs compat can switch their GTK |
|
260 # system setting to use emacs emulation, and we should respect it. Focus-Search-Box |
|
261 # is a fundamental keybinding and we are maintaining a XP binding so that it is easy |
|
262 # for people to switch to Linux. |
|
263 # |
|
264 <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/> |
|
265 #ifdef XP_MACOSX |
|
266 <key id="key_search2" key="&findOnCmd.commandkey;" command="Tools:Search" modifiers="accel,alt"/> |
|
267 #endif |
|
268 #ifdef XP_WIN |
|
269 <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/> |
|
270 #endif |
|
271 #ifdef XP_GNOME |
|
272 <key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/> |
|
273 <key id="key_openDownloads" key="&downloadsUnix.commandkey;" command="Tools:Downloads" modifiers="accel,shift"/> |
|
274 #else |
|
275 <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/> |
|
276 #endif |
|
277 <key id="key_openAddons" key="&addons.commandkey;" command="Tools:Addons" modifiers="accel,shift"/> |
|
278 <key id="key_devToolboxMenuItemF12" keycode="&devToolsCmd.keycode;" keytext="&devToolsCmd.keytext;" command="Tools:DevToolbox"/> |
|
279 <key id="key_browserConsole" key="&browserConsoleCmd.commandkey;" command="Tools:BrowserConsole" modifiers="accel,shift"/> |
|
280 <key id="key_devToolbar" keycode="&devToolbar.keycode;" modifiers="shift" |
|
281 keytext="&devToolbar.keytext;" command="Tools:DevToolbarFocus"/> |
|
282 <key id="key_responsiveUI" key="&responsiveDesignTool.commandkey;" command="Tools:ResponsiveUI" |
|
283 #ifdef XP_MACOSX |
|
284 modifiers="accel,alt" |
|
285 #else |
|
286 modifiers="accel,shift" |
|
287 #endif |
|
288 /> |
|
289 |
|
290 <key id="key_devToolboxMenuItem" keytext="&devToolboxMenuItem.keytext;" |
|
291 command="Tools:DevToolbox" key="&devToolboxMenuItem.keytext;" |
|
292 #ifdef XP_MACOSX |
|
293 modifiers="accel,alt" |
|
294 #else |
|
295 modifiers="accel,shift" |
|
296 #endif |
|
297 /> |
|
298 |
|
299 <key id="key_scratchpad" keycode="&scratchpad.keycode;" modifiers="shift" |
|
300 keytext="&scratchpad.keytext;" command="Tools:Scratchpad"/> |
|
301 <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/> |
|
302 <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/> |
|
303 <key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/> |
|
304 <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/> |
|
305 <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/> |
|
306 <key id="key_undo" |
|
307 key="&undoCmd.key;" |
|
308 modifiers="accel"/> |
|
309 #ifdef XP_UNIX |
|
310 <key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/> |
|
311 #else |
|
312 <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/> |
|
313 #endif |
|
314 <key id="key_cut" |
|
315 key="&cutCmd.key;" |
|
316 modifiers="accel"/> |
|
317 <key id="key_copy" |
|
318 key="©Cmd.key;" |
|
319 modifiers="accel"/> |
|
320 <key id="key_paste" |
|
321 key="&pasteCmd.key;" |
|
322 modifiers="accel"/> |
|
323 <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/> |
|
324 <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/> |
|
325 |
|
326 <key keycode="VK_BACK" command="cmd_handleBackspace"/> |
|
327 <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/> |
|
328 #ifndef XP_MACOSX |
|
329 <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/> |
|
330 <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/> |
|
331 #else |
|
332 <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="accel" /> |
|
333 <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="accel" /> |
|
334 #endif |
|
335 #ifdef XP_UNIX |
|
336 <key id="goBackKb2" key="&goBackCmd.commandKey;" command="Browser:Back" modifiers="accel"/> |
|
337 <key id="goForwardKb2" key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/> |
|
338 #endif |
|
339 <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/> |
|
340 <key keycode="VK_F5" command="Browser:Reload"/> |
|
341 #ifndef XP_MACOSX |
|
342 <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/> |
|
343 <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/> |
|
344 <key keycode="VK_F6" command="Browser:FocusNextFrame"/> |
|
345 <key keycode="VK_F6" command="Browser:FocusNextFrame" modifiers="shift"/> |
|
346 <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/> |
|
347 #else |
|
348 <key id="key_fullScreen" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,control"/> |
|
349 <key id="key_fullScreen_old" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,shift"/> |
|
350 <key keycode="VK_F11" command="View:FullScreen"/> |
|
351 #endif |
|
352 <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/> |
|
353 <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/> |
|
354 <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/> |
|
355 #ifndef XP_WIN |
|
356 <key id="key_viewInfo" key="&pageInfoCmd.commandkey;" command="View:PageInfo" modifiers="accel"/> |
|
357 #endif |
|
358 <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/> |
|
359 <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/> |
|
360 <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/> |
|
361 #ifdef XP_MACOSX |
|
362 <key id="key_findSelection" key="&findSelectionCmd.commandkey;" command="cmd_findSelection" modifiers="accel"/> |
|
363 #endif |
|
364 <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/> |
|
365 <key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/> |
|
366 |
|
367 <key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/> |
|
368 # Accel+Shift+A-F are reserved on GTK |
|
369 #ifndef MOZ_WIDGET_GTK |
|
370 <key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" oncommand="PlacesCommandHook.bookmarkCurrentPages();" modifiers="accel,shift"/> |
|
371 <key id="manBookmarkKb" key="&bookmarksCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/> |
|
372 #else |
|
373 <key id="manBookmarkKb" key="&bookmarksGtkCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/> |
|
374 #endif |
|
375 <key id="viewBookmarksSidebarKb" key="&bookmarksCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/> |
|
376 #ifdef XP_WIN |
|
377 # Cmd+I is conventially mapped to Info on MacOS X, thus it should not be |
|
378 # overridden for other purposes there. |
|
379 <key id="viewBookmarksSidebarWinKb" key="&bookmarksWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/> |
|
380 #endif |
|
381 |
|
382 <!--<key id="markPage" key="&markPageCmd.commandkey;" command="Social:TogglePageMark" modifiers="accel,shift"/>--> |
|
383 <key id="focusChatBar" key="&social.chatBar.commandkey;" command="Social:FocusChat" modifiers="accel,shift"/> |
|
384 |
|
385 <key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/> |
|
386 |
|
387 #ifdef XP_MACOSX |
|
388 <key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" command="Browser:Stop"/> |
|
389 #endif |
|
390 |
|
391 <key id="key_gotoHistory" |
|
392 key="&historySidebarCmd.commandKey;" |
|
393 #ifdef XP_MACOSX |
|
394 modifiers="accel,shift" |
|
395 #else |
|
396 modifiers="accel" |
|
397 #endif |
|
398 command="viewHistorySidebar"/> |
|
399 |
|
400 <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/> |
|
401 <key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/> |
|
402 <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
|
403 <key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
|
404 <key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/> |
|
405 <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/> |
|
406 <key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/> |
|
407 |
|
408 <key id="key_showAllTabs" command="Browser:ShowAllTabs" keycode="VK_TAB" modifiers="control,shift"/> |
|
409 |
|
410 <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" /> |
|
411 |
|
412 <key id="key_tabview" key="&tabView.commandkey;" command="Browser:ToggleTabView" modifiers="accel,shift"/> |
|
413 |
|
414 <key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;" modifiers="accel,shift"/> |
|
415 <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/> |
|
416 #ifdef XP_MACOSX |
|
417 <key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/> |
|
418 #endif |
|
419 #ifdef XP_UNIX |
|
420 <key id="key_quitApplication" key="&quitApplicationCmdUnix.key;" command="cmd_quitApplication" modifiers="accel"/> |
|
421 #endif |
|
422 |
|
423 #ifdef FULL_BROWSER_WINDOW |
|
424 <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/> |
|
425 #endif |
|
426 <key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/> |
|
427 |
|
428 #ifdef XP_GNOME |
|
429 #define NUM_SELECT_TAB_MODIFIER alt |
|
430 #else |
|
431 #define NUM_SELECT_TAB_MODIFIER accel |
|
432 #endif |
|
433 |
|
434 #expand <key id="key_selectTab1" oncommand="gBrowser.selectTabAtIndex(0, event);" key="1" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
435 #expand <key id="key_selectTab2" oncommand="gBrowser.selectTabAtIndex(1, event);" key="2" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
436 #expand <key id="key_selectTab3" oncommand="gBrowser.selectTabAtIndex(2, event);" key="3" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
437 #expand <key id="key_selectTab4" oncommand="gBrowser.selectTabAtIndex(3, event);" key="4" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
438 #expand <key id="key_selectTab5" oncommand="gBrowser.selectTabAtIndex(4, event);" key="5" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
439 #expand <key id="key_selectTab6" oncommand="gBrowser.selectTabAtIndex(5, event);" key="6" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
440 #expand <key id="key_selectTab7" oncommand="gBrowser.selectTabAtIndex(6, event);" key="7" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
441 #expand <key id="key_selectTab8" oncommand="gBrowser.selectTabAtIndex(7, event);" key="8" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
442 #expand <key id="key_selectLastTab" oncommand="gBrowser.selectTabAtIndex(-1, event);" key="9" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> |
|
443 |
|
444 </keyset> |
|
445 |
|
446 # Used by baseMenuOverlay |
|
447 #ifdef XP_MACOSX |
|
448 <commandset id="baseMenuCommandSet" /> |
|
449 #endif |
|
450 <keyset id="baseMenuKeyset" /> |