2007-03-22 10:30:00 -07:00
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
#define XP_GNOME 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2010-05-10 21:28:18 -07:00
|
|
|
<stringbundleset id="stringbundleset">
|
2007-03-22 10:30:00 -07:00
|
|
|
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
|
|
|
|
<stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
|
|
|
|
<stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
|
|
|
|
</stringbundleset>
|
|
|
|
|
|
|
|
<commandset id="mainCommandSet">
|
|
|
|
<command id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/>
|
|
|
|
<command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
|
|
|
|
<command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
|
|
|
|
|
|
|
|
<command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
|
|
|
|
<command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
|
|
|
|
<command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
|
|
|
|
|
|
|
|
<command id="Browser:SendLink"
|
|
|
|
oncommand="MailIntegration.sendLinkForWindow(window.content);"/>
|
|
|
|
|
|
|
|
<command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
|
|
|
|
<command id="cmd_print" oncommand="PrintUtils.print();"/>
|
2009-09-09 00:50:46 -07:00
|
|
|
<command id="cmd_printPreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
|
|
|
|
<command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
|
2010-04-05 23:34:27 -07:00
|
|
|
<command id="cmd_ToggleTabsOnTop" oncommand="TabsOnTop.toggle()"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
|
2008-03-06 17:59:42 -08:00
|
|
|
<command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
<commandset id="editMenuCommands"/>
|
|
|
|
|
|
|
|
<command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
|
|
|
|
<command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
|
|
|
|
<command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
|
|
|
|
<command id="cmd_find"
|
2011-03-28 19:51:26 -07:00
|
|
|
oncommand="gFindBar.onFindCommand();"
|
2007-03-22 10:30:00 -07:00
|
|
|
observes="isImage"/>
|
|
|
|
<command id="cmd_findAgain"
|
|
|
|
oncommand="gFindBar.onFindAgainCommand(false);"
|
|
|
|
observes="isImage"/>
|
|
|
|
<command id="cmd_findPrevious"
|
|
|
|
oncommand="gFindBar.onFindAgainCommand(true);"
|
|
|
|
observes="isImage"/>
|
2007-08-17 00:22:12 -07:00
|
|
|
<!-- work-around bug 392512 -->
|
2010-05-10 21:28:18 -07:00
|
|
|
<command id="Browser:AddBookmarkAs"
|
2007-11-19 18:01:53 -08:00
|
|
|
oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/>
|
2011-01-28 08:46:49 -08:00
|
|
|
<!-- The command disabled state must be manually updated through
|
|
|
|
PlacesCommandHook.updateBookmarkAllTabsCommand() -->
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Browser:BookmarkAllTabs"
|
2011-01-28 08:46:49 -08:00
|
|
|
oncommand="PlacesCommandHook.bookmarkCurrentPages();"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Browser:Home" oncommand="BrowserHome();"/>
|
|
|
|
<command id="Browser:Back" oncommand="BrowserBack();" disabled="true"/>
|
2008-09-01 13:19:24 -07:00
|
|
|
<command id="Browser:BackOrBackDuplicate" oncommand="BrowserBack(event);" disabled="true">
|
|
|
|
<observes element="Browser:Back" attribute="disabled"/>
|
|
|
|
</command>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
|
2008-09-01 13:19:24 -07:00
|
|
|
<command id="Browser:ForwardOrForwardDuplicate" oncommand="BrowserForward(event);" disabled="true">
|
|
|
|
<observes element="Browser:Forward" attribute="disabled"/>
|
|
|
|
</command>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Browser:Stop" oncommand="BrowserStop();" disabled="true"/>
|
|
|
|
<command id="Browser:Reload" oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
|
2008-08-31 14:00:59 -07:00
|
|
|
<command id="Browser:ReloadOrDuplicate" oncommand="BrowserReloadOrDuplicate(event)" disabled="true">
|
|
|
|
<observes element="Browser:Reload" attribute="disabled"/>
|
|
|
|
</command>
|
|
|
|
<command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true">
|
|
|
|
<observes element="Browser:Reload" attribute="disabled"/>
|
|
|
|
</command>
|
2010-03-22 07:12:04 -07:00
|
|
|
<command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/>
|
|
|
|
<command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/>
|
2009-07-20 21:25:59 -07:00
|
|
|
<command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/>
|
2010-07-29 12:37:25 -07:00
|
|
|
<command id="Browser:ToggleTabView" oncommand="TabView.toggle();"/>
|
2011-12-23 20:12:11 -08:00
|
|
|
<command id="Browser:FocusNextFrame" oncommand="focusNextFrame(event);"/>
|
2007-10-25 16:02:20 -07:00
|
|
|
<command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/>
|
|
|
|
<command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
|
|
|
|
<command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/>
|
2008-02-13 03:00:45 -08:00
|
|
|
<command id="cmd_fullZoomToggle" oncommand="ZoomManager.toggleZoom();"/>
|
2013-01-31 13:52:31 -08:00
|
|
|
<command id="cmd_gestureRotateLeft" oncommand="gGestureSupport.rotate(event.sourceEvent)"/>
|
|
|
|
<command id="cmd_gestureRotateRight" oncommand="gGestureSupport.rotate(event.sourceEvent)"/>
|
|
|
|
<command id="cmd_gestureRotateEnd" oncommand="gGestureSupport.rotateEnd()"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Browser:OpenLocation" oncommand="openLocation();"/>
|
2012-12-09 20:13:50 -08:00
|
|
|
<command id="Browser:RestoreLastSession" oncommand="restoreLastSession();" disabled="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-05-10 21:28:18 -07:00
|
|
|
<command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>
|
2008-01-26 13:01:44 -08:00
|
|
|
<command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
|
2012-12-13 05:03:55 -08:00
|
|
|
<command id="Tools:DevToolbox" oncommand="gDevToolsBrowser.toggleToolboxCommand(gBrowser);"/>
|
2012-07-23 12:00:06 -07:00
|
|
|
<command id="Tools:DevToolbar" oncommand="DeveloperToolbar.toggle();" disabled="true" hidden="true"/>
|
2012-09-07 06:24:59 -07:00
|
|
|
<command id="Tools:DevToolbarFocus" oncommand="DeveloperToolbar.focusToggle();" disabled="true"/>
|
2013-06-21 07:33:56 -07:00
|
|
|
<command id="Tools:ChromeDebugger" oncommand="BrowserDebuggerProcess.init();" disabled="true" hidden="true"/>
|
2013-05-17 11:29:31 -07:00
|
|
|
<command id="Tools:BrowserConsole" oncommand="HUDConsoleUI.toggleBrowserConsole();"/>
|
2012-07-23 12:00:06 -07:00
|
|
|
<command id="Tools:Scratchpad" oncommand="Scratchpad.openScratchpad();" disabled="true" hidden="true"/>
|
|
|
|
<command id="Tools:ResponsiveUI" oncommand="ResponsiveUI.toggle();" disabled="true" hidden="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
|
2012-11-16 19:20:51 -08:00
|
|
|
<command id="Tools:ErrorConsole" oncommand="toJavaScriptConsole()" disabled="true" hidden="true"/>
|
2012-12-17 23:54:00 -08:00
|
|
|
<command id="Tools:DevToolsConnect" oncommand="gDevToolsBrowser.openConnectScreen(gBrowser)" disabled="true" hidden="true"/>
|
2007-05-20 14:09:42 -07:00
|
|
|
<command id="Tools:Sanitize"
|
2009-08-04 11:10:23 -07:00
|
|
|
oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window);"/>
|
2012-10-07 20:15:41 -07:00
|
|
|
<command id="Tools:PrivateBrowsing"
|
|
|
|
oncommand="OpenBrowserWindow({private: true});"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
|
2009-04-22 23:50:30 -07:00
|
|
|
<command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/>
|
2011-02-01 04:05:52 -08:00
|
|
|
<command id="Browser:ToggleAddonBar" oncommand="toggleAddonBar();"/>
|
2013-05-04 13:11:18 -07:00
|
|
|
<command id="Social:TogglePageMark" oncommand="SocialMark.togglePageMark();" disabled="true"/>
|
2013-05-06 23:02:58 -07:00
|
|
|
<command id="Social:SharePage" oncommand="SocialShare.sharePage();" disabled="true"/>
|
2012-07-18 11:40:05 -07:00
|
|
|
<command id="Social:ToggleSidebar" oncommand="Social.toggleSidebar();"/>
|
2013-03-05 11:24:30 -08:00
|
|
|
<command id="Social:ToggleNotifications" oncommand="Social.toggleNotifications();" hidden="true"/>
|
2012-11-26 22:58:55 -08:00
|
|
|
<command id="Social:FocusChat" oncommand="SocialChatBar.focus();" hidden="true" disabled="true"/>
|
2012-07-22 20:49:28 -07:00
|
|
|
<command id="Social:Toggle" oncommand="Social.toggle();" hidden="true"/>
|
2013-02-26 14:50:24 -08:00
|
|
|
<command id="Social:Addons" oncommand="BrowserOpenAddonsMgr('addons://list/service');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<commandset id="placesCommands">
|
2007-11-26 11:04:23 -08:00
|
|
|
<command id="Browser:ShowAllBookmarks"
|
|
|
|
oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/>
|
|
|
|
<command id="Browser:ShowAllHistory"
|
|
|
|
oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<broadcasterset id="mainBroadcasterSet">
|
|
|
|
<broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
|
|
|
|
type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
|
|
|
|
oncommand="toggleSidebar('viewBookmarksSidebar');"/>
|
|
|
|
|
2010-05-10 21:28:18 -07:00
|
|
|
<!-- for both places and non-places, the sidebar lives at
|
2007-03-22 10:30:00 -07:00
|
|
|
chrome://browser/content/history/history-panel.xul so there are no
|
|
|
|
problems when switching between versions -->
|
|
|
|
<broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
|
2010-05-10 21:28:18 -07:00
|
|
|
type="checkbox" group="sidebar"
|
2007-03-22 10:30:00 -07:00
|
|
|
sidebarurl="chrome://browser/content/history/history-panel.xul"
|
|
|
|
oncommand="toggleSidebar('viewHistorySidebar');"/>
|
2012-01-27 08:13:53 -08:00
|
|
|
|
2010-05-10 21:28:18 -07:00
|
|
|
<broadcaster id="viewWebPanelsSidebar" autoCheck="false"
|
2007-03-22 10:30:00 -07:00
|
|
|
type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
|
|
|
|
oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
|
|
|
|
|
|
|
|
<!-- popup blocking menu items -->
|
2010-05-10 21:28:18 -07:00
|
|
|
<broadcaster id="blockedPopupAllowSite"
|
|
|
|
accesskey="&allowPopups.accesskey;"
|
2007-03-22 10:30:00 -07:00
|
|
|
oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
|
2010-05-10 21:28:18 -07:00
|
|
|
<broadcaster id="blockedPopupEditSettings"
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef XP_WIN
|
|
|
|
label="&editPopupSettings.label;"
|
|
|
|
#else
|
2010-05-10 21:28:18 -07:00
|
|
|
label="&editPopupSettingsUnix.label;"
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
2010-05-10 21:28:18 -07:00
|
|
|
accesskey="&editPopupSettings.accesskey;"
|
2007-03-22 10:30:00 -07:00
|
|
|
oncommand="gPopupBlockerObserver.editPopupSettings();"/>
|
2010-05-10 21:28:18 -07:00
|
|
|
<broadcaster id="blockedPopupDontShowMessage"
|
|
|
|
accesskey="&dontShowMessage.accesskey;"
|
2007-03-22 10:30:00 -07:00
|
|
|
type="checkbox"
|
|
|
|
oncommand="gPopupBlockerObserver.dontShowMessage();"/>
|
|
|
|
<broadcaster id="blockedPopupsSeparator"/>
|
|
|
|
<broadcaster id="isImage"/>
|
2007-09-02 15:11:38 -07:00
|
|
|
<broadcaster id="isFrameImage"/>
|
2010-08-23 01:18:22 -07:00
|
|
|
<broadcaster id="singleFeedMenuitemState" disabled="true"/>
|
|
|
|
<broadcaster id="multipleFeedsMenuState" hidden="true"/>
|
2011-06-06 20:52:30 -07:00
|
|
|
<broadcaster id="tabviewGroupsNumber" groups="1"/>
|
2010-09-15 11:26:27 -07:00
|
|
|
#ifdef MOZ_SERVICES_SYNC
|
|
|
|
<broadcaster id="sync-setup-state"/>
|
|
|
|
<broadcaster id="sync-syncnow-state"/>
|
|
|
|
#endif
|
2010-09-21 02:16:29 -07:00
|
|
|
<broadcaster id="workOfflineMenuitemState"/>
|
2012-07-18 11:40:05 -07:00
|
|
|
<broadcaster id="socialSidebarBroadcaster" hidden="true"/>
|
2012-11-26 22:54:55 -08:00
|
|
|
<broadcaster id="socialActiveBroadcaster" hidden="true"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
|
|
|
|
<!-- DevTools broadcasters -->
|
2012-11-30 00:07:59 -08:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_DevToolbox"
|
2012-12-17 11:01:31 -08:00
|
|
|
label="&devToolboxMenuItem.label;"
|
2012-11-30 00:07:59 -08:00
|
|
|
type="checkbox" autocheck="false"
|
|
|
|
command="Tools:DevToolbox"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_DevToolbar"
|
|
|
|
label="&devToolbarMenu.label;"
|
|
|
|
type="checkbox" autocheck="false"
|
|
|
|
command="Tools:DevToolbar"
|
2012-07-23 12:00:06 -07:00
|
|
|
key="key_devToolbar"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_ChromeDebugger"
|
|
|
|
label="&chromeDebuggerMenu.label;"
|
2012-07-23 12:00:06 -07:00
|
|
|
command="Tools:ChromeDebugger"/>
|
2013-04-09 02:47:23 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_BrowserConsole"
|
|
|
|
label="&browserConsoleCmd.label;"
|
2013-05-17 11:29:31 -07:00
|
|
|
key="key_browserConsole"
|
2013-04-09 02:47:23 -07:00
|
|
|
command="Tools:BrowserConsole"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_Scratchpad"
|
|
|
|
label="&scratchpad.label;"
|
|
|
|
command="Tools:Scratchpad"
|
2012-07-23 12:00:06 -07:00
|
|
|
key="key_scratchpad"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI"
|
|
|
|
label="&responsiveDesignTool.label;"
|
|
|
|
type="checkbox" autocheck="false"
|
|
|
|
command="Tools:ResponsiveUI"
|
2012-07-23 12:00:06 -07:00
|
|
|
key="key_responsiveUI"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_PageSource"
|
|
|
|
label="&pageSourceCmd.label;"
|
|
|
|
key="key_viewSource"
|
|
|
|
command="View:PageSource"/>
|
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_ErrorConsole"
|
|
|
|
label="&errorConsoleCmd.label;"
|
2012-07-23 12:00:06 -07:00
|
|
|
command="Tools:ErrorConsole"/>
|
2012-07-13 02:32:09 -07:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_GetMoreTools"
|
|
|
|
label="&getMoreDevtoolsCmd.label;"
|
|
|
|
oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_connect"
|
|
|
|
label="&devtoolsConnect.label;"
|
|
|
|
command="Tools:DevToolsConnect"/>
|
2012-11-15 15:07:42 -08:00
|
|
|
|
|
|
|
<!-- SocialAPI broadcasters -->
|
2012-11-19 17:22:42 -08:00
|
|
|
<broadcaster id="socialBroadcaster_userDetails"
|
2012-11-15 15:07:42 -08:00
|
|
|
notLoggedInLabel="&social.notLoggedIn.label;"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</broadcasterset>
|
|
|
|
|
|
|
|
<keyset id="mainKeyset">
|
|
|
|
<key id="key_newNavigator"
|
|
|
|
key="&newNavigatorCmd.key;"
|
|
|
|
command="cmd_newNavigator"
|
|
|
|
modifiers="accel"/>
|
|
|
|
<key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
|
|
|
|
<key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
|
|
|
|
modifiers="accel"/>
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
<key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
|
|
|
|
modifiers="alt"/>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Search Command Key Logic works like this:
|
2012-11-30 00:07:59 -08:00
|
|
|
#
|
2007-03-22 10:30:00 -07:00
|
|
|
# Unix: Ctrl+K (cross platform binding)
|
|
|
|
# Ctrl+J (in case of emacs Ctrl-K conflict)
|
2010-09-26 20:22:56 -07:00
|
|
|
# Mac: Cmd+K (cross platform binding)
|
|
|
|
# Cmd+Opt+F (platform convention)
|
2007-03-22 10:30:00 -07:00
|
|
|
# Win: Ctrl+K (cross platform binding)
|
2011-08-08 19:44:51 -07:00
|
|
|
# Ctrl+E (IE compat)
|
2007-03-22 10:30:00 -07:00
|
|
|
#
|
|
|
|
# We support Ctrl+K on all platforms now and advertise it in the menu since it is
|
|
|
|
# our standard - it is a "safe" choice since it is near no harmful keys like "W" as
|
|
|
|
# "E" is. People mourning the loss of Ctrl+K for emacs compat can switch their GTK
|
|
|
|
# system setting to use emacs emulation, and we should respect it. Focus-Search-Box
|
|
|
|
# is a fundamental keybinding and we are maintaining a XP binding so that it is easy
|
|
|
|
# for people to switch to Linux.
|
|
|
|
#
|
|
|
|
<key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
|
2008-02-23 02:19:08 -08:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<key id="key_search2" key="&findOnCmd.commandkey;" command="Tools:Search" modifiers="accel,alt"/>
|
|
|
|
#endif
|
2011-08-08 19:44:51 -07:00
|
|
|
#ifdef XP_WIN
|
|
|
|
<key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
|
|
|
|
#endif
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef XP_GNOME
|
|
|
|
<key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/>
|
2009-02-25 07:25:28 -08:00
|
|
|
<key id="key_openDownloads" key="&downloadsUnix.commandkey;" command="Tools:Downloads" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#else
|
|
|
|
<key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
|
|
|
|
#endif
|
2010-08-31 18:23:01 -07:00
|
|
|
<key id="key_openAddons" key="&addons.commandkey;" command="Tools:Addons" modifiers="accel,shift"/>
|
2013-05-17 11:29:31 -07:00
|
|
|
<key id="key_browserConsole" key="&browserConsoleCmd.commandkey;" command="Tools:BrowserConsole" modifiers="accel,shift"/>
|
2012-07-10 15:04:44 -07:00
|
|
|
<key id="key_devToolbar" keycode="&devToolbar.keycode;" modifiers="shift"
|
|
|
|
keytext="&devToolbar.keytext;" command="Tools:DevToolbarFocus"/>
|
2012-06-12 10:18:19 -07:00
|
|
|
<key id="key_responsiveUI" key="&responsiveDesignTool.commandkey;" command="Tools:ResponsiveUI"
|
2012-06-01 05:53:58 -07:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
modifiers="accel,alt"
|
|
|
|
#else
|
|
|
|
modifiers="accel,shift"
|
2011-11-23 04:46:26 -08:00
|
|
|
#endif
|
|
|
|
/>
|
2011-06-24 12:00:50 -07:00
|
|
|
<key id="key_scratchpad" keycode="&scratchpad.keycode;" modifiers="shift"
|
2011-05-09 07:51:52 -07:00
|
|
|
keytext="&scratchpad.keytext;" command="Tools:Scratchpad"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/>
|
|
|
|
<key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
|
|
|
|
<key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/>
|
|
|
|
<key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
|
|
|
|
<key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
|
|
|
|
<key id="key_undo"
|
|
|
|
key="&undoCmd.key;"
|
|
|
|
modifiers="accel"/>
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
<key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/>
|
|
|
|
#else
|
|
|
|
<key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
|
|
|
|
#endif
|
|
|
|
<key id="key_cut"
|
|
|
|
key="&cutCmd.key;"
|
|
|
|
modifiers="accel"/>
|
|
|
|
<key id="key_copy"
|
|
|
|
key="©Cmd.key;"
|
|
|
|
modifiers="accel"/>
|
|
|
|
<key id="key_paste"
|
|
|
|
key="&pasteCmd.key;"
|
|
|
|
modifiers="accel"/>
|
|
|
|
<key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
|
|
|
|
<key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
|
|
|
|
|
|
|
|
<key keycode="VK_BACK" command="cmd_handleBackspace"/>
|
|
|
|
<key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
<key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
|
|
|
|
<key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
|
|
|
|
#else
|
|
|
|
<key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="accel" />
|
|
|
|
<key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="accel" />
|
|
|
|
#endif
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
<key id="goBackKb2" key="&goBackCmd.commandKey;" command="Browser:Back" modifiers="accel"/>
|
|
|
|
<key id="goForwardKb2" key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/>
|
|
|
|
#endif
|
|
|
|
<key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
|
|
|
|
<key keycode="VK_F5" command="Browser:Reload"/>
|
|
|
|
#ifndef XP_MACOSX
|
2008-01-14 21:09:39 -08:00
|
|
|
<key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
|
2011-12-23 20:12:11 -08:00
|
|
|
<key keycode="VK_F6" command="Browser:FocusNextFrame"/>
|
2012-03-14 16:34:00 -07:00
|
|
|
<key keycode="VK_F6" command="Browser:FocusNextFrame" modifiers="shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
|
2009-09-03 14:36:32 -07:00
|
|
|
#else
|
2012-05-14 17:04:19 -07:00
|
|
|
<key id="key_fullScreen" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,control"/>
|
|
|
|
<key id="key_fullScreen_old" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,shift"/>
|
2009-09-03 14:36:32 -07:00
|
|
|
<key keycode="VK_F11" command="View:FullScreen"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
|
|
|
<key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
|
|
|
|
<key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
|
|
|
|
<key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
|
|
|
|
#ifndef XP_WIN
|
|
|
|
<key id="key_viewInfo" key="&pageInfoCmd.commandkey;" command="View:PageInfo" modifiers="accel"/>
|
|
|
|
#endif
|
|
|
|
<key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
|
|
|
|
<key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
|
|
|
|
<key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
|
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
|
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
|
|
|
|
|
2008-01-15 17:50:16 -08:00
|
|
|
<key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
|
2013-06-11 10:40:28 -07:00
|
|
|
# Accel+Shift+A-F are reserved on GTK
|
|
|
|
#ifndef MOZ_WIDGET_GTK
|
2011-01-28 08:46:49 -08:00
|
|
|
<key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" oncommand="PlacesCommandHook.bookmarkCurrentPages();" modifiers="accel,shift"/>
|
2009-03-26 05:54:53 -07:00
|
|
|
<key id="manBookmarkKb" key="&bookmarksCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/>
|
|
|
|
#else
|
|
|
|
<key id="manBookmarkKb" key="&bookmarksGtkCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
2009-03-26 05:54:53 -07:00
|
|
|
<key id="viewBookmarksSidebarKb" key="&bookmarksCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef XP_WIN
|
2010-05-10 21:28:18 -07:00
|
|
|
# Cmd+I is conventially mapped to Info on MacOS X, thus it should not be
|
|
|
|
# overridden for other purposes there.
|
2009-03-26 05:54:53 -07:00
|
|
|
<key id="viewBookmarksSidebarWinKb" key="&bookmarksWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
2013-05-04 13:11:18 -07:00
|
|
|
|
|
|
|
<key id="markPage" key="&markPageCmd.commandkey;" command="Social:TogglePageMark" modifiers="accel,shift"/>
|
2012-11-26 22:58:55 -08:00
|
|
|
<key id="focusChatBar" key="&social.chatBar.commandkey;" command="Social:FocusChat" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-20 13:16:11 -08:00
|
|
|
<key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/>
|
2010-05-10 21:28:18 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef XP_MACOSX
|
2012-12-20 13:16:11 -08:00
|
|
|
<key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" command="Browser:Stop"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
<key id="key_gotoHistory"
|
|
|
|
key="&historySidebarCmd.commandKey;"
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
modifiers="accel,shift"
|
|
|
|
#else
|
|
|
|
modifiers="accel"
|
|
|
|
#endif
|
|
|
|
command="viewHistorySidebar"/>
|
|
|
|
|
2007-10-25 16:02:20 -07:00
|
|
|
<key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
2008-04-23 01:04:08 -07:00
|
|
|
<key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
2007-10-25 16:02:20 -07:00
|
|
|
<key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
|
|
|
<key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
2008-04-23 01:04:08 -07:00
|
|
|
<key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
2007-10-25 16:02:20 -07:00
|
|
|
<key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/>
|
2008-04-23 01:04:08 -07:00
|
|
|
<key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/>
|
2009-07-20 21:25:59 -07:00
|
|
|
|
|
|
|
<key id="key_showAllTabs" command="Browser:ShowAllTabs" keycode="VK_TAB" modifiers="control,shift"/>
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
|
|
|
|
|
2011-01-16 01:54:17 -08:00
|
|
|
<key id="key_tabview" key="&tabView.commandkey;" command="Browser:ToggleTabView" modifiers="accel,shift"/>
|
2010-09-26 20:22:56 -07:00
|
|
|
|
2009-01-01 21:21:02 -08:00
|
|
|
<key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/>
|
|
|
|
#endif
|
2008-03-06 17:59:42 -08:00
|
|
|
#ifdef XP_UNIX
|
2013-04-26 10:46:25 -07:00
|
|
|
<key id="key_quitApplication" key="&quitApplicationCmdUnix.key;" command="cmd_quitApplication" modifiers="accel"/>
|
2008-03-06 17:59:42 -08:00
|
|
|
#endif
|
|
|
|
|
2011-04-12 20:54:26 -07:00
|
|
|
#ifdef FULL_BROWSER_WINDOW
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
|
2011-04-12 20:54:26 -07:00
|
|
|
#endif
|
2009-04-22 23:50:30 -07:00
|
|
|
<key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/>
|
2008-05-02 07:50:42 -07:00
|
|
|
|
|
|
|
#ifdef XP_GNOME
|
|
|
|
#define NUM_SELECT_TAB_MODIFIER alt
|
|
|
|
#else
|
|
|
|
#define NUM_SELECT_TAB_MODIFIER accel
|
|
|
|
#endif
|
|
|
|
|
2008-09-02 01:50:22 -07:00
|
|
|
#expand <key id="key_selectTab1" oncommand="gBrowser.selectTabAtIndex(0, event);" key="1" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab2" oncommand="gBrowser.selectTabAtIndex(1, event);" key="2" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab3" oncommand="gBrowser.selectTabAtIndex(2, event);" key="3" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab4" oncommand="gBrowser.selectTabAtIndex(3, event);" key="4" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab5" oncommand="gBrowser.selectTabAtIndex(4, event);" key="5" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab6" oncommand="gBrowser.selectTabAtIndex(5, event);" key="6" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab7" oncommand="gBrowser.selectTabAtIndex(6, event);" key="7" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectTab8" oncommand="gBrowser.selectTabAtIndex(7, event);" key="8" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
|
|
|
#expand <key id="key_selectLastTab" oncommand="gBrowser.selectTabAtIndex(-1, event);" key="9" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
|
2008-05-02 07:50:42 -07:00
|
|
|
|
2011-02-01 04:05:52 -08:00
|
|
|
<key id="key_toggleAddonBar" command="Browser:ToggleAddonBar" key="&toggleAddonBarCmd.key;" modifiers="accel"/>
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
</keyset>
|
|
|
|
|
|
|
|
# Used by baseMenuOverlay
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<commandset id="baseMenuCommandSet" />
|
|
|
|
#endif
|
|
|
|
<keyset id="baseMenuKeyset" />
|