1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/browser-sets.inc Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,450 @@ 1.4 +# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +#ifdef XP_UNIX 1.10 +#ifndef XP_MACOSX 1.11 +#define XP_GNOME 1 1.12 +#endif 1.13 +#endif 1.14 + 1.15 + <stringbundleset id="stringbundleset"> 1.16 + <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/> 1.17 + <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/> 1.18 + <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/> 1.19 + </stringbundleset> 1.20 + 1.21 + <commandset id="mainCommandSet"> 1.22 + <command id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/> 1.23 + <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" /> 1.24 + <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" /> 1.25 + 1.26 + <command id="cmd_newNavigatorTab" oncommand="BrowserOpenNewTabOrWindow(event);"/> 1.27 + <command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/> 1.28 + <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/> 1.29 + 1.30 + <command id="Browser:SendLink" 1.31 + oncommand="MailIntegration.sendLinkForWindow(window.content);"/> 1.32 + 1.33 + <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/> 1.34 + <command id="cmd_print" oncommand="PrintUtils.print();"/> 1.35 + <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/> 1.36 + <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/> 1.37 + <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/> 1.38 + <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/> 1.39 + <command id="cmd_quitApplication" oncommand="goQuitApplication()"/> 1.40 + 1.41 + 1.42 + <commandset id="editMenuCommands"/> 1.43 + 1.44 + <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/> 1.45 + <command id="View:PageInfo" oncommand="BrowserPageInfo();"/> 1.46 + <command id="View:FullScreen" oncommand="BrowserFullScreen();"/> 1.47 + <command id="cmd_find" 1.48 + oncommand="gFindBar.onFindCommand();" 1.49 + observes="isImage"/> 1.50 + <command id="cmd_findAgain" 1.51 + oncommand="gFindBar.onFindAgainCommand(false);" 1.52 + observes="isImage"/> 1.53 + <command id="cmd_findPrevious" 1.54 + oncommand="gFindBar.onFindAgainCommand(true);" 1.55 + observes="isImage"/> 1.56 +#ifdef XP_MACOSX 1.57 + <command id="cmd_findSelection" oncommand="gFindBar.onFindSelectionCommand();"/> 1.58 +#endif 1.59 + <!-- work-around bug 392512 --> 1.60 + <command id="Browser:AddBookmarkAs" 1.61 + oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/> 1.62 + <!-- The command disabled state must be manually updated through 1.63 + PlacesCommandHook.updateBookmarkAllTabsCommand() --> 1.64 + <command id="Browser:BookmarkAllTabs" 1.65 + oncommand="PlacesCommandHook.bookmarkCurrentPages();"/> 1.66 + <command id="Browser:Home" oncommand="BrowserHome();"/> 1.67 + <command id="Browser:Back" oncommand="BrowserBack();" disabled="true"/> 1.68 + <command id="Browser:BackOrBackDuplicate" oncommand="BrowserBack(event);" disabled="true"> 1.69 + <observes element="Browser:Back" attribute="disabled"/> 1.70 + </command> 1.71 + <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/> 1.72 + <command id="Browser:ForwardOrForwardDuplicate" oncommand="BrowserForward(event);" disabled="true"> 1.73 + <observes element="Browser:Forward" attribute="disabled"/> 1.74 + </command> 1.75 + <command id="Browser:Stop" oncommand="BrowserStop();" disabled="true"/> 1.76 + <command id="Browser:Reload" oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/> 1.77 + <command id="Browser:ReloadOrDuplicate" oncommand="BrowserReloadOrDuplicate(event)" disabled="true"> 1.78 + <observes element="Browser:Reload" attribute="disabled"/> 1.79 + </command> 1.80 + <command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true"> 1.81 + <observes element="Browser:Reload" attribute="disabled"/> 1.82 + </command> 1.83 + <command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/> 1.84 + <command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/> 1.85 + <command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/> 1.86 + <command id="Browser:ToggleTabView" oncommand="TabView.toggle();"/> 1.87 + <command id="Browser:FocusNextFrame" oncommand="focusNextFrame(event);"/> 1.88 + <command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/> 1.89 + <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/> 1.90 + <command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/> 1.91 + <command id="cmd_fullZoomToggle" oncommand="ZoomManager.toggleZoom();"/> 1.92 + <command id="cmd_gestureRotateLeft" oncommand="gGestureSupport.rotate(event.sourceEvent)"/> 1.93 + <command id="cmd_gestureRotateRight" oncommand="gGestureSupport.rotate(event.sourceEvent)"/> 1.94 + <command id="cmd_gestureRotateEnd" oncommand="gGestureSupport.rotateEnd()"/> 1.95 + <command id="Browser:OpenLocation" oncommand="openLocation();"/> 1.96 + <command id="Browser:RestoreLastSession" oncommand="restoreLastSession();" disabled="true"/> 1.97 + 1.98 + <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/> 1.99 + <command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/> 1.100 + <command id="Tools:DevToolbox" oncommand="gDevToolsBrowser.toggleToolboxCommand(gBrowser);"/> 1.101 + <command id="Tools:DevToolbar" oncommand="DeveloperToolbar.toggle();" disabled="true" hidden="true"/> 1.102 + <command id="Tools:DevToolbarFocus" oncommand="DeveloperToolbar.focusToggle();" disabled="true"/> 1.103 + <command id="Tools:DevAppMgr" oncommand="gDevToolsBrowser.openAppManager(gBrowser);" disabled="true" hidden="true"/> 1.104 + <command id="Tools:BrowserToolbox" oncommand="BrowserToolboxProcess.init();" disabled="true" hidden="true"/> 1.105 + <command id="Tools:BrowserConsole" oncommand="HUDService.toggleBrowserConsole();"/> 1.106 + <command id="Tools:Scratchpad" oncommand="Scratchpad.openScratchpad();"/> 1.107 + <command id="Tools:ResponsiveUI" oncommand="ResponsiveUI.toggle();"/> 1.108 + <command id="Tools:Eyedropper" oncommand="openEyedropper();"/> 1.109 + <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/> 1.110 + <command id="Tools:ErrorConsole" oncommand="toJavaScriptConsole()" disabled="true" hidden="true"/> 1.111 + <command id="Tools:DevToolsConnect" oncommand="gDevToolsBrowser.openConnectScreen(gBrowser)" disabled="true" hidden="true"/> 1.112 + <command id="Tools:Sanitize" 1.113 + oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window);"/> 1.114 + <command id="Tools:PrivateBrowsing" 1.115 + oncommand="OpenBrowserWindow({private: true});"/> 1.116 + <command id="Tools:RemoteWindow" 1.117 + oncommand="OpenBrowserWindow({remote: true});"/> 1.118 + <command id="Tools:NonRemoteWindow" 1.119 + oncommand="OpenBrowserWindow({remote: false});"/> 1.120 + <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/> 1.121 + <command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/> 1.122 + <command id="Social:SharePage" oncommand="SocialShare.sharePage();" disabled="true"/> 1.123 + <command id="Social:ToggleSidebar" oncommand="SocialSidebar.toggleSidebar();" hidden="true"/> 1.124 + <command id="Social:ToggleNotifications" oncommand="Social.toggleNotifications();" hidden="true"/> 1.125 + <command id="Social:FocusChat" oncommand="SocialChatBar.focus();" hidden="true" disabled="true"/> 1.126 + <command id="Social:Addons" oncommand="BrowserOpenAddonsMgr('addons://list/service');"/> 1.127 + </commandset> 1.128 + 1.129 + <commandset id="placesCommands"> 1.130 + <command id="Browser:ShowAllBookmarks" 1.131 + oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/> 1.132 + <command id="Browser:ShowAllHistory" 1.133 + oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/> 1.134 + </commandset> 1.135 + 1.136 + <broadcasterset id="mainBroadcasterSet"> 1.137 + <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;" 1.138 + type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul" 1.139 + oncommand="toggleSidebar('viewBookmarksSidebar');"/> 1.140 + 1.141 + <!-- for both places and non-places, the sidebar lives at 1.142 + chrome://browser/content/history/history-panel.xul so there are no 1.143 + problems when switching between versions --> 1.144 + <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;" 1.145 + type="checkbox" group="sidebar" 1.146 + sidebarurl="chrome://browser/content/history/history-panel.xul" 1.147 + oncommand="toggleSidebar('viewHistorySidebar');"/> 1.148 + 1.149 + <broadcaster id="viewWebPanelsSidebar" autoCheck="false" 1.150 + type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul" 1.151 + oncommand="toggleSidebar('viewWebPanelsSidebar');"/> 1.152 + 1.153 + <broadcaster id="bookmarkThisPageBroadcaster" 1.154 + label="&bookmarkThisPageCmd.label;" 1.155 + bookmarklabel="&bookmarkThisPageCmd.label;" 1.156 + editlabel="&editThisBookmarkCmd.label;"/> 1.157 + 1.158 + <!-- popup blocking menu items --> 1.159 + <broadcaster id="blockedPopupAllowSite" 1.160 + accesskey="&allowPopups.accesskey;" 1.161 + oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/> 1.162 + <broadcaster id="blockedPopupEditSettings" 1.163 +#ifdef XP_WIN 1.164 + label="&editPopupSettings.label;" 1.165 +#else 1.166 + label="&editPopupSettingsUnix.label;" 1.167 +#endif 1.168 + accesskey="&editPopupSettings.accesskey;" 1.169 + oncommand="gPopupBlockerObserver.editPopupSettings();"/> 1.170 + <broadcaster id="blockedPopupDontShowMessage" 1.171 + accesskey="&dontShowMessage.accesskey;" 1.172 + type="checkbox" 1.173 + oncommand="gPopupBlockerObserver.dontShowMessage();"/> 1.174 + <broadcaster id="blockedPopupsSeparator"/> 1.175 + <broadcaster id="isImage"/> 1.176 + <broadcaster id="isFrameImage"/> 1.177 + <broadcaster id="singleFeedMenuitemState" disabled="true"/> 1.178 + <broadcaster id="multipleFeedsMenuState" hidden="true"/> 1.179 + <broadcaster id="tabviewGroupsNumber" groups="1"/> 1.180 +#ifdef MOZ_SERVICES_SYNC 1.181 + <broadcaster id="sync-setup-state"/> 1.182 + <broadcaster id="sync-syncnow-state" hidden="true"/> 1.183 + <broadcaster id="sync-reauth-state" hidden="true"/> 1.184 +#endif 1.185 + <broadcaster id="workOfflineMenuitemState"/> 1.186 + <broadcaster id="socialSidebarBroadcaster" hidden="true"/> 1.187 + 1.188 + <!-- DevTools broadcasters --> 1.189 + <broadcaster id="devtoolsMenuBroadcaster_DevToolbox" 1.190 + label="&devToolboxMenuItem.label;" 1.191 + type="checkbox" autocheck="false" 1.192 + command="Tools:DevToolbox" 1.193 + key="key_devToolboxMenuItem"/> 1.194 + <broadcaster id="devtoolsMenuBroadcaster_DevToolbar" 1.195 + label="&devToolbarMenu.label;" 1.196 + type="checkbox" autocheck="false" 1.197 + command="Tools:DevToolbar" 1.198 + key="key_devToolbar"/> 1.199 + <broadcaster id="devtoolsMenuBroadcaster_DevAppMgr" 1.200 + label="&devAppMgrMenu.label;" 1.201 + command="Tools:DevAppMgr"/> 1.202 + <broadcaster id="devtoolsMenuBroadcaster_BrowserToolbox" 1.203 + label="&browserToolboxMenu.label;" 1.204 + command="Tools:BrowserToolbox"/> 1.205 + <broadcaster id="devtoolsMenuBroadcaster_BrowserConsole" 1.206 + label="&browserConsoleCmd.label;" 1.207 + key="key_browserConsole" 1.208 + command="Tools:BrowserConsole"/> 1.209 + <broadcaster id="devtoolsMenuBroadcaster_Scratchpad" 1.210 + label="&scratchpad.label;" 1.211 + command="Tools:Scratchpad" 1.212 + key="key_scratchpad"/> 1.213 + <broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI" 1.214 + label="&responsiveDesignTool.label;" 1.215 + type="checkbox" autocheck="false" 1.216 + command="Tools:ResponsiveUI" 1.217 + key="key_responsiveUI"/> 1.218 + <broadcaster id="devtoolsMenuBroadcaster_Eyedropper" 1.219 + label="&eyedropper.label;" 1.220 + type="checkbox" autocheck="false" 1.221 + command="Tools:Eyedropper"/> 1.222 + <broadcaster id="devtoolsMenuBroadcaster_PageSource" 1.223 + label="&pageSourceCmd.label;" 1.224 + key="key_viewSource" 1.225 + command="View:PageSource"/> 1.226 + <broadcaster id="devtoolsMenuBroadcaster_ErrorConsole" 1.227 + label="&errorConsoleCmd.label;" 1.228 + command="Tools:ErrorConsole"/> 1.229 + <broadcaster id="devtoolsMenuBroadcaster_GetMoreTools" 1.230 + label="&getMoreDevtoolsCmd.label;" 1.231 + oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/> 1.232 + <broadcaster id="devtoolsMenuBroadcaster_connect" 1.233 + label="&devtoolsConnect.label;" 1.234 + command="Tools:DevToolsConnect"/> 1.235 + </broadcasterset> 1.236 + 1.237 + <keyset id="mainKeyset"> 1.238 + <key id="key_newNavigator" 1.239 + key="&newNavigatorCmd.key;" 1.240 + command="cmd_newNavigator" 1.241 + modifiers="accel"/> 1.242 + <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/> 1.243 + <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation" 1.244 + modifiers="accel"/> 1.245 +#ifndef XP_MACOSX 1.246 + <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation" 1.247 + modifiers="alt"/> 1.248 +#endif 1.249 + 1.250 +# 1.251 +# Search Command Key Logic works like this: 1.252 +# 1.253 +# Unix: Ctrl+K (cross platform binding) 1.254 +# Ctrl+J (in case of emacs Ctrl-K conflict) 1.255 +# Mac: Cmd+K (cross platform binding) 1.256 +# Cmd+Opt+F (platform convention) 1.257 +# Win: Ctrl+K (cross platform binding) 1.258 +# Ctrl+E (IE compat) 1.259 +# 1.260 +# We support Ctrl+K on all platforms now and advertise it in the menu since it is 1.261 +# our standard - it is a "safe" choice since it is near no harmful keys like "W" as 1.262 +# "E" is. People mourning the loss of Ctrl+K for emacs compat can switch their GTK 1.263 +# system setting to use emacs emulation, and we should respect it. Focus-Search-Box 1.264 +# is a fundamental keybinding and we are maintaining a XP binding so that it is easy 1.265 +# for people to switch to Linux. 1.266 +# 1.267 + <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/> 1.268 +#ifdef XP_MACOSX 1.269 + <key id="key_search2" key="&findOnCmd.commandkey;" command="Tools:Search" modifiers="accel,alt"/> 1.270 +#endif 1.271 +#ifdef XP_WIN 1.272 + <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/> 1.273 +#endif 1.274 +#ifdef XP_GNOME 1.275 + <key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/> 1.276 + <key id="key_openDownloads" key="&downloadsUnix.commandkey;" command="Tools:Downloads" modifiers="accel,shift"/> 1.277 +#else 1.278 + <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/> 1.279 +#endif 1.280 + <key id="key_openAddons" key="&addons.commandkey;" command="Tools:Addons" modifiers="accel,shift"/> 1.281 + <key id="key_devToolboxMenuItemF12" keycode="&devToolsCmd.keycode;" keytext="&devToolsCmd.keytext;" command="Tools:DevToolbox"/> 1.282 + <key id="key_browserConsole" key="&browserConsoleCmd.commandkey;" command="Tools:BrowserConsole" modifiers="accel,shift"/> 1.283 + <key id="key_devToolbar" keycode="&devToolbar.keycode;" modifiers="shift" 1.284 + keytext="&devToolbar.keytext;" command="Tools:DevToolbarFocus"/> 1.285 + <key id="key_responsiveUI" key="&responsiveDesignTool.commandkey;" command="Tools:ResponsiveUI" 1.286 +#ifdef XP_MACOSX 1.287 + modifiers="accel,alt" 1.288 +#else 1.289 + modifiers="accel,shift" 1.290 +#endif 1.291 + /> 1.292 + 1.293 + <key id="key_devToolboxMenuItem" keytext="&devToolboxMenuItem.keytext;" 1.294 + command="Tools:DevToolbox" key="&devToolboxMenuItem.keytext;" 1.295 +#ifdef XP_MACOSX 1.296 + modifiers="accel,alt" 1.297 +#else 1.298 + modifiers="accel,shift" 1.299 +#endif 1.300 + /> 1.301 + 1.302 + <key id="key_scratchpad" keycode="&scratchpad.keycode;" modifiers="shift" 1.303 + keytext="&scratchpad.keytext;" command="Tools:Scratchpad"/> 1.304 + <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/> 1.305 + <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/> 1.306 + <key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/> 1.307 + <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/> 1.308 + <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/> 1.309 + <key id="key_undo" 1.310 + key="&undoCmd.key;" 1.311 + modifiers="accel"/> 1.312 +#ifdef XP_UNIX 1.313 + <key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/> 1.314 +#else 1.315 + <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/> 1.316 +#endif 1.317 + <key id="key_cut" 1.318 + key="&cutCmd.key;" 1.319 + modifiers="accel"/> 1.320 + <key id="key_copy" 1.321 + key="©Cmd.key;" 1.322 + modifiers="accel"/> 1.323 + <key id="key_paste" 1.324 + key="&pasteCmd.key;" 1.325 + modifiers="accel"/> 1.326 + <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/> 1.327 + <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/> 1.328 + 1.329 + <key keycode="VK_BACK" command="cmd_handleBackspace"/> 1.330 + <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/> 1.331 +#ifndef XP_MACOSX 1.332 + <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/> 1.333 + <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/> 1.334 +#else 1.335 + <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="accel" /> 1.336 + <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="accel" /> 1.337 +#endif 1.338 +#ifdef XP_UNIX 1.339 + <key id="goBackKb2" key="&goBackCmd.commandKey;" command="Browser:Back" modifiers="accel"/> 1.340 + <key id="goForwardKb2" key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/> 1.341 +#endif 1.342 + <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/> 1.343 + <key keycode="VK_F5" command="Browser:Reload"/> 1.344 +#ifndef XP_MACOSX 1.345 + <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/> 1.346 + <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/> 1.347 + <key keycode="VK_F6" command="Browser:FocusNextFrame"/> 1.348 + <key keycode="VK_F6" command="Browser:FocusNextFrame" modifiers="shift"/> 1.349 + <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/> 1.350 +#else 1.351 + <key id="key_fullScreen" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,control"/> 1.352 + <key id="key_fullScreen_old" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,shift"/> 1.353 + <key keycode="VK_F11" command="View:FullScreen"/> 1.354 +#endif 1.355 + <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/> 1.356 + <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/> 1.357 + <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/> 1.358 +#ifndef XP_WIN 1.359 + <key id="key_viewInfo" key="&pageInfoCmd.commandkey;" command="View:PageInfo" modifiers="accel"/> 1.360 +#endif 1.361 + <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/> 1.362 + <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/> 1.363 + <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/> 1.364 +#ifdef XP_MACOSX 1.365 + <key id="key_findSelection" key="&findSelectionCmd.commandkey;" command="cmd_findSelection" modifiers="accel"/> 1.366 +#endif 1.367 + <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/> 1.368 + <key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/> 1.369 + 1.370 + <key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/> 1.371 +# Accel+Shift+A-F are reserved on GTK 1.372 +#ifndef MOZ_WIDGET_GTK 1.373 + <key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" oncommand="PlacesCommandHook.bookmarkCurrentPages();" modifiers="accel,shift"/> 1.374 + <key id="manBookmarkKb" key="&bookmarksCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/> 1.375 +#else 1.376 + <key id="manBookmarkKb" key="&bookmarksGtkCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/> 1.377 +#endif 1.378 + <key id="viewBookmarksSidebarKb" key="&bookmarksCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/> 1.379 +#ifdef XP_WIN 1.380 +# Cmd+I is conventially mapped to Info on MacOS X, thus it should not be 1.381 +# overridden for other purposes there. 1.382 + <key id="viewBookmarksSidebarWinKb" key="&bookmarksWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/> 1.383 +#endif 1.384 + 1.385 + <!--<key id="markPage" key="&markPageCmd.commandkey;" command="Social:TogglePageMark" modifiers="accel,shift"/>--> 1.386 + <key id="focusChatBar" key="&social.chatBar.commandkey;" command="Social:FocusChat" modifiers="accel,shift"/> 1.387 + 1.388 + <key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/> 1.389 + 1.390 +#ifdef XP_MACOSX 1.391 + <key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" command="Browser:Stop"/> 1.392 +#endif 1.393 + 1.394 + <key id="key_gotoHistory" 1.395 + key="&historySidebarCmd.commandKey;" 1.396 +#ifdef XP_MACOSX 1.397 + modifiers="accel,shift" 1.398 +#else 1.399 + modifiers="accel" 1.400 +#endif 1.401 + command="viewHistorySidebar"/> 1.402 + 1.403 + <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/> 1.404 + <key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/> 1.405 + <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/> 1.406 + <key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/> 1.407 + <key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/> 1.408 + <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/> 1.409 + <key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/> 1.410 + 1.411 + <key id="key_showAllTabs" command="Browser:ShowAllTabs" keycode="VK_TAB" modifiers="control,shift"/> 1.412 + 1.413 + <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" /> 1.414 + 1.415 + <key id="key_tabview" key="&tabView.commandkey;" command="Browser:ToggleTabView" modifiers="accel,shift"/> 1.416 + 1.417 + <key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;" modifiers="accel,shift"/> 1.418 + <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/> 1.419 +#ifdef XP_MACOSX 1.420 + <key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/> 1.421 +#endif 1.422 +#ifdef XP_UNIX 1.423 + <key id="key_quitApplication" key="&quitApplicationCmdUnix.key;" command="cmd_quitApplication" modifiers="accel"/> 1.424 +#endif 1.425 + 1.426 +#ifdef FULL_BROWSER_WINDOW 1.427 + <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/> 1.428 +#endif 1.429 + <key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/> 1.430 + 1.431 +#ifdef XP_GNOME 1.432 +#define NUM_SELECT_TAB_MODIFIER alt 1.433 +#else 1.434 +#define NUM_SELECT_TAB_MODIFIER accel 1.435 +#endif 1.436 + 1.437 +#expand <key id="key_selectTab1" oncommand="gBrowser.selectTabAtIndex(0, event);" key="1" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.438 +#expand <key id="key_selectTab2" oncommand="gBrowser.selectTabAtIndex(1, event);" key="2" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.439 +#expand <key id="key_selectTab3" oncommand="gBrowser.selectTabAtIndex(2, event);" key="3" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.440 +#expand <key id="key_selectTab4" oncommand="gBrowser.selectTabAtIndex(3, event);" key="4" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.441 +#expand <key id="key_selectTab5" oncommand="gBrowser.selectTabAtIndex(4, event);" key="5" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.442 +#expand <key id="key_selectTab6" oncommand="gBrowser.selectTabAtIndex(5, event);" key="6" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.443 +#expand <key id="key_selectTab7" oncommand="gBrowser.selectTabAtIndex(6, event);" key="7" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.444 +#expand <key id="key_selectTab8" oncommand="gBrowser.selectTabAtIndex(7, event);" key="8" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.445 +#expand <key id="key_selectLastTab" oncommand="gBrowser.selectTabAtIndex(-1, event);" key="9" modifiers="__NUM_SELECT_TAB_MODIFIER__"/> 1.446 + 1.447 + </keyset> 1.448 + 1.449 +# Used by baseMenuOverlay 1.450 +#ifdef XP_MACOSX 1.451 + <commandset id="baseMenuCommandSet" /> 1.452 +#endif 1.453 + <keyset id="baseMenuKeyset" />