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