2003-12-03 08:37:53 +03:00
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 15:12:37 +04: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/.
|
2003-12-03 08:37:53 +03:00
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifdef XP_UNIX
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
#define XP_GNOME 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2010-05-11 08:28:18 +04:00
|
|
|
<stringbundleset id="stringbundleset">
|
2005-03-10 07:38:35 +03:00
|
|
|
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
|
2004-03-08 12:56:16 +03:00
|
|
|
<stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
|
2005-02-25 12:07:58 +03:00
|
|
|
<stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
</stringbundleset>
|
|
|
|
|
|
|
|
<commandset id="mainCommandSet">
|
2015-03-12 18:03:18 +03:00
|
|
|
<command id="cmd_newNavigator" oncommand="OpenBrowserWindow()" reserved="true"/>
|
2005-10-20 19:16:27 +04:00
|
|
|
<command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
|
|
|
|
<command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
|
2006-03-07 02:57:47 +03:00
|
|
|
|
2016-08-19 15:28:04 +03:00
|
|
|
<command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab(event);" reserved="true"/>
|
2016-08-23 00:01:58 +03:00
|
|
|
<command id="cmd_newNavigatorTabNoEvent" oncommand="BrowserOpenTab();" reserved="true"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
|
2015-08-06 00:25:39 +03:00
|
|
|
<command id="Browser:SavePage" oncommand="saveBrowser(gBrowser.selectedBrowser);"/>
|
2004-03-07 07:42:17 +03:00
|
|
|
|
2007-03-08 01:25:24 +03:00
|
|
|
<command id="Browser:SendLink"
|
2015-01-08 04:52:20 +03:00
|
|
|
oncommand="MailIntegration.sendLinkForBrowser(gBrowser.selectedBrowser);"/>
|
2004-03-07 07:42:17 +03:00
|
|
|
|
2005-01-25 02:40:03 +03:00
|
|
|
<command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
|
2015-07-03 23:06:04 +03:00
|
|
|
<command id="cmd_print" oncommand="PrintUtils.printWindow(window.gBrowser.selectedBrowser.outerWindowID, window.gBrowser.selectedBrowser);"/>
|
2009-09-09 11:50:46 +04:00
|
|
|
<command id="cmd_printPreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/>
|
2015-03-12 18:03:18 +03:00
|
|
|
<command id="cmd_close" oncommand="BrowserCloseTabOrWindow()" reserved="true"/>
|
|
|
|
<command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()" reserved="true"/>
|
2015-08-06 05:58:51 +03:00
|
|
|
<command id="cmd_toggleMute" oncommand="gBrowser.selectedTab.toggleMuteAudio()"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
|
2015-03-12 18:03:18 +03:00
|
|
|
<command id="cmd_quitApplication" oncommand="goQuitApplication()" reserved="true"/>
|
2006-11-03 01:26:22 +03:00
|
|
|
|
|
|
|
|
2007-02-15 00:28:26 +03:00
|
|
|
<commandset id="editMenuCommands"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
|
2015-08-25 02:50:50 +03:00
|
|
|
<command id="View:PageSource" oncommand="BrowserViewSource(window.gBrowser.selectedBrowser);" observes="canViewSource"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
|
|
|
|
<command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
|
2015-03-21 03:35:55 +03:00
|
|
|
<command id="View:ReaderView" oncommand="ReaderParent.toggleReaderMode(event);"/>
|
2006-11-27 01:47:46 +03:00
|
|
|
<command id="cmd_find"
|
2011-03-29 06:51:26 +04:00
|
|
|
oncommand="gFindBar.onFindCommand();"
|
2006-11-27 01:47:46 +03:00
|
|
|
observes="isImage"/>
|
|
|
|
<command id="cmd_findAgain"
|
|
|
|
oncommand="gFindBar.onFindAgainCommand(false);"
|
|
|
|
observes="isImage"/>
|
|
|
|
<command id="cmd_findPrevious"
|
|
|
|
oncommand="gFindBar.onFindAgainCommand(true);"
|
|
|
|
observes="isImage"/>
|
2014-02-28 19:07:34 +04:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<command id="cmd_findSelection" oncommand="gFindBar.onFindSelectionCommand();"/>
|
|
|
|
#endif
|
2007-08-17 11:22:12 +04:00
|
|
|
<!-- work-around bug 392512 -->
|
2010-05-11 08:28:18 +04:00
|
|
|
<command id="Browser:AddBookmarkAs"
|
2007-11-20 05:01:53 +03:00
|
|
|
oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/>
|
2011-01-28 19:46:49 +03:00
|
|
|
<!-- The command disabled state must be manually updated through
|
|
|
|
PlacesCommandHook.updateBookmarkAllTabsCommand() -->
|
2007-01-22 02:31:39 +03:00
|
|
|
<command id="Browser:BookmarkAllTabs"
|
2011-01-28 19:46:49 +03:00
|
|
|
oncommand="PlacesCommandHook.bookmarkCurrentPages();"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="Browser:Home" oncommand="BrowserHome();"/>
|
|
|
|
<command id="Browser:Back" oncommand="BrowserBack();" disabled="true"/>
|
2008-09-02 00:19:24 +04:00
|
|
|
<command id="Browser:BackOrBackDuplicate" oncommand="BrowserBack(event);" disabled="true">
|
|
|
|
<observes element="Browser:Back" attribute="disabled"/>
|
|
|
|
</command>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
|
2008-09-02 00:19:24 +04:00
|
|
|
<command id="Browser:ForwardOrForwardDuplicate" oncommand="BrowserForward(event);" disabled="true">
|
|
|
|
<observes element="Browser:Forward" attribute="disabled"/>
|
|
|
|
</command>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="Browser:Stop" oncommand="BrowserStop();" disabled="true"/>
|
2005-02-27 20:59:38 +03:00
|
|
|
<command id="Browser:Reload" oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
|
2008-09-01 01:00:59 +04: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>
|
2015-03-12 18:03:18 +03:00
|
|
|
<command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);" reserved="true"/>
|
|
|
|
<command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);" reserved="true"/>
|
2009-07-21 08:25:59 +04:00
|
|
|
<command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/>
|
2007-10-26 03:02:20 +04: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 14:00:45 +03:00
|
|
|
<command id="cmd_fullZoomToggle" oncommand="ZoomManager.toggleZoom();"/>
|
2013-02-01 01:52:31 +04: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()"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<command id="Browser:OpenLocation" oncommand="openLocation();"/>
|
2012-12-10 08:13:50 +04:00
|
|
|
<command id="Browser:RestoreLastSession" oncommand="restoreLastSession();" disabled="true"/>
|
2015-09-28 23:00:28 +03:00
|
|
|
<command id="Browser:NewUserContextTab" oncommand="openNewUserContextTab(event.sourceEvent);" reserved="true"/>
|
2004-04-21 08:35:27 +04:00
|
|
|
|
2010-05-11 08:28:18 +04:00
|
|
|
<command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>
|
2008-01-27 00:01:44 +03:00
|
|
|
<command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
|
2006-04-27 07:05:10 +04:00
|
|
|
<command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
|
2007-05-21 01:09:42 +04:00
|
|
|
<command id="Tools:Sanitize"
|
2009-08-04 22:10:23 +04:00
|
|
|
oncommand="Cc['@mozilla.org/browser/browserglue;1'].getService(Ci.nsIBrowserGlue).sanitize(window);"/>
|
2012-10-08 07:15:41 +04:00
|
|
|
<command id="Tools:PrivateBrowsing"
|
2015-03-12 18:03:18 +03:00
|
|
|
oncommand="OpenBrowserWindow({private: true});" reserved="true"/>
|
2014-05-22 20:09:32 +04:00
|
|
|
#ifdef E10S_TESTING_ONLY
|
2014-02-11 21:01:08 +04:00
|
|
|
<command id="Tools:NonRemoteWindow"
|
|
|
|
oncommand="OpenBrowserWindow({remote: false});"/>
|
2014-05-22 20:09:32 +04:00
|
|
|
#endif
|
2006-07-22 01:16:12 +04:00
|
|
|
<command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
|
2009-04-23 10:50:30 +04:00
|
|
|
<command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/>
|
2014-10-09 23:02:13 +04:00
|
|
|
<command id="Social:SharePage" oncommand="SocialShare.sharePage();"/>
|
2013-02-27 02:50:24 +04:00
|
|
|
<command id="Social:Addons" oncommand="BrowserOpenAddonsMgr('addons://list/service');"/>
|
2007-01-05 14:45:15 +03:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<commandset id="placesCommands">
|
2007-11-26 22:04:23 +03:00
|
|
|
<command id="Browser:ShowAllBookmarks"
|
2016-01-15 13:21:52 +03:00
|
|
|
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"/>
|
2007-11-26 22:04:23 +03:00
|
|
|
<command id="Browser:ShowAllHistory"
|
|
|
|
oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/>
|
2007-01-05 16:30:59 +03:00
|
|
|
</commandset>
|
2003-08-11 12:12:19 +04:00
|
|
|
|
|
|
|
<broadcasterset id="mainBroadcasterSet">
|
2016-08-24 01:24:06 +03:00
|
|
|
<broadcaster id="Social:PageShareable" disabled="true"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
|
|
|
|
type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
|
2015-02-20 11:21:33 +03:00
|
|
|
oncommand="SidebarUI.toggle('viewBookmarksSidebar');"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
|
2010-05-11 08:28:18 +04:00
|
|
|
<!-- for both places and non-places, the sidebar lives at
|
2006-11-04 07:48:06 +03:00
|
|
|
chrome://browser/content/history/history-panel.xul so there are no
|
|
|
|
problems when switching between versions -->
|
2006-06-07 00:50:42 +04:00
|
|
|
<broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
|
2010-05-11 08:28:18 +04:00
|
|
|
type="checkbox" group="sidebar"
|
2006-11-04 07:48:06 +03:00
|
|
|
sidebarurl="chrome://browser/content/history/history-panel.xul"
|
2015-02-20 11:21:33 +03:00
|
|
|
oncommand="SidebarUI.toggle('viewHistorySidebar');"/>
|
2012-01-27 20:13:53 +04:00
|
|
|
|
2010-05-11 08:28:18 +04:00
|
|
|
<broadcaster id="viewWebPanelsSidebar" autoCheck="false"
|
2003-08-11 12:12:19 +04:00
|
|
|
type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
|
2015-02-20 11:21:33 +03:00
|
|
|
oncommand="SidebarUI.toggle('viewWebPanelsSidebar');"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
|
2014-02-01 03:21:41 +04:00
|
|
|
<broadcaster id="bookmarkThisPageBroadcaster"
|
|
|
|
label="&bookmarkThisPageCmd.label;"
|
|
|
|
bookmarklabel="&bookmarkThisPageCmd.label;"
|
|
|
|
editlabel="&editThisBookmarkCmd.label;"/>
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
<!-- popup blocking menu items -->
|
2010-05-11 08:28:18 +04:00
|
|
|
<broadcaster id="blockedPopupAllowSite"
|
|
|
|
accesskey="&allowPopups.accesskey;"
|
2004-11-30 11:23:02 +03:00
|
|
|
oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
|
2010-05-11 08:28:18 +04:00
|
|
|
<broadcaster id="blockedPopupEditSettings"
|
2005-06-08 00:16:29 +04:00
|
|
|
#ifdef XP_WIN
|
|
|
|
label="&editPopupSettings.label;"
|
|
|
|
#else
|
2010-05-11 08:28:18 +04:00
|
|
|
label="&editPopupSettingsUnix.label;"
|
2005-06-08 00:16:29 +04:00
|
|
|
#endif
|
2010-05-11 08:28:18 +04:00
|
|
|
accesskey="&editPopupSettings.accesskey;"
|
2004-11-30 11:23:02 +03:00
|
|
|
oncommand="gPopupBlockerObserver.editPopupSettings();"/>
|
2010-05-11 08:28:18 +04:00
|
|
|
<broadcaster id="blockedPopupDontShowMessage"
|
|
|
|
accesskey="&dontShowMessage.accesskey;"
|
2004-11-30 11:23:02 +03:00
|
|
|
type="checkbox"
|
|
|
|
oncommand="gPopupBlockerObserver.dontShowMessage();"/>
|
|
|
|
<broadcaster id="blockedPopupsSeparator"/>
|
2005-09-19 01:31:34 +04:00
|
|
|
<broadcaster id="isImage"/>
|
2015-08-25 02:50:50 +03:00
|
|
|
<broadcaster id="canViewSource"/>
|
2007-09-03 02:11:38 +04:00
|
|
|
<broadcaster id="isFrameImage"/>
|
2010-08-23 12:18:22 +04:00
|
|
|
<broadcaster id="singleFeedMenuitemState" disabled="true"/>
|
|
|
|
<broadcaster id="multipleFeedsMenuState" hidden="true"/>
|
2015-12-03 02:05:03 +03:00
|
|
|
|
|
|
|
<!-- Sync broadcasters -->
|
|
|
|
<!-- A broadcaster of a number of attributes suitable for "sync now" UI -
|
|
|
|
A 'syncstatus' attribute is set while actively syncing, and the label
|
|
|
|
attribute which changes from "sync now" to "syncing" etc. -->
|
|
|
|
<broadcaster id="sync-status"/>
|
|
|
|
<!-- broadcasters of the "hidden" attribute to reflect setup state for
|
|
|
|
menus -->
|
2010-09-15 22:26:27 +04:00
|
|
|
<broadcaster id="sync-setup-state"/>
|
2014-03-13 05:14:05 +04:00
|
|
|
<broadcaster id="sync-syncnow-state" hidden="true"/>
|
|
|
|
<broadcaster id="sync-reauth-state" hidden="true"/>
|
2016-01-28 01:40:30 +03:00
|
|
|
<broadcaster id="viewTabsSidebar" autoCheck="false" sidebartitle="&syncedTabs.sidebar.label;"
|
|
|
|
type="checkbox" group="sidebar"
|
|
|
|
sidebarurl="chrome://browser/content/syncedtabs/sidebar.xhtml"
|
|
|
|
oncommand="SidebarUI.toggle('viewTabsSidebar');"/>
|
2010-09-21 13:16:29 +04:00
|
|
|
<broadcaster id="workOfflineMenuitemState"/>
|
2012-07-13 13:32:09 +04:00
|
|
|
|
|
|
|
<broadcaster id="devtoolsMenuBroadcaster_PageSource"
|
|
|
|
label="&pageSourceCmd.label;"
|
|
|
|
key="key_viewSource"
|
2015-08-25 02:50:50 +03:00
|
|
|
command="View:PageSource">
|
|
|
|
<observes element="canViewSource" attribute="disabled"/>
|
|
|
|
</broadcaster>
|
2003-08-11 12:12:19 +04:00
|
|
|
</broadcasterset>
|
|
|
|
|
|
|
|
<keyset id="mainKeyset">
|
|
|
|
<key id="key_newNavigator"
|
|
|
|
key="&newNavigatorCmd.key;"
|
|
|
|
command="cmd_newNavigator"
|
|
|
|
modifiers="accel"/>
|
2016-08-23 00:01:58 +03:00
|
|
|
<key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTabNoEvent"/>
|
2003-11-20 03:45:03 +03:00
|
|
|
<key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
|
2003-08-11 12:12:19 +04:00
|
|
|
modifiers="accel"/>
|
2004-12-06 01:06:44 +03:00
|
|
|
#ifndef XP_MACOSX
|
2004-01-19 09:46:02 +03:00
|
|
|
<key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
|
|
|
|
modifiers="alt"/>
|
2004-12-06 01:06:44 +03:00
|
|
|
#endif
|
|
|
|
|
2004-09-10 11:55:06 +04:00
|
|
|
#
|
|
|
|
# Search Command Key Logic works like this:
|
2012-11-30 12:07:59 +04:00
|
|
|
#
|
2004-11-30 11:23:02 +03:00
|
|
|
# Unix: Ctrl+K (cross platform binding)
|
|
|
|
# Ctrl+J (in case of emacs Ctrl-K conflict)
|
2010-09-27 07:22:56 +04:00
|
|
|
# Mac: Cmd+K (cross platform binding)
|
|
|
|
# Cmd+Opt+F (platform convention)
|
2004-09-10 11:55:06 +04:00
|
|
|
# Win: Ctrl+K (cross platform binding)
|
2011-08-09 06:44:51 +04:00
|
|
|
# Ctrl+E (IE compat)
|
2004-09-10 11:55:06 +04: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.
|
|
|
|
#
|
2004-04-21 08:35:27 +04:00
|
|
|
<key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
|
2008-02-23 13:19:08 +03:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<key id="key_search2" key="&findOnCmd.commandkey;" command="Tools:Search" modifiers="accel,alt"/>
|
|
|
|
#endif
|
2011-08-09 06:44:51 +04:00
|
|
|
#ifdef XP_WIN
|
|
|
|
<key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
|
|
|
|
#endif
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifdef XP_GNOME
|
|
|
|
<key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/>
|
2009-02-25 18:25:28 +03:00
|
|
|
<key id="key_openDownloads" key="&downloadsUnix.commandkey;" command="Tools:Downloads" modifiers="accel,shift"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
#else
|
|
|
|
<key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
|
2003-11-20 03:45:03 +03:00
|
|
|
#endif
|
2010-09-01 05:23:01 +04:00
|
|
|
<key id="key_openAddons" key="&addons.commandkey;" command="Tools:Addons" modifiers="accel,shift"/>
|
2003-11-20 03:45:03 +03: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"/>
|
2015-08-13 01:32:17 +03:00
|
|
|
<key id="key_toggleMute" key="&toggleMuteCmd.key;" command="cmd_toggleMute" modifiers="control"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<key id="key_undo"
|
|
|
|
key="&undoCmd.key;"
|
|
|
|
modifiers="accel"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifdef XP_UNIX
|
|
|
|
<key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/>
|
|
|
|
#else
|
|
|
|
<key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
|
|
|
|
#endif
|
2003-08-11 12:12:19 +04:00
|
|
|
<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"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
<key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
|
|
|
|
<key keycode="VK_BACK" command="cmd_handleBackspace"/>
|
2005-10-20 19:16:27 +04:00
|
|
|
<key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
|
2005-10-11 23:03:11 +04:00
|
|
|
#ifndef XP_MACOSX
|
2003-08-11 12:12:19 +04:00
|
|
|
<key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
|
|
|
|
<key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
|
2005-06-20 10:39:22 +04:00
|
|
|
#else
|
|
|
|
<key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="accel" />
|
|
|
|
<key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="accel" />
|
2005-04-22 00:58:30 +04:00
|
|
|
#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"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
#endif
|
|
|
|
<key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
|
2005-02-27 20:59:38 +03:00
|
|
|
<key keycode="VK_F5" command="Browser:Reload"/>
|
2005-09-05 02:38:30 +04:00
|
|
|
#ifndef XP_MACOSX
|
2008-01-15 08:09:39 +03:00
|
|
|
<key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
|
2005-02-27 20:59:38 +03:00
|
|
|
<key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
|
2005-09-07 20:33:19 +04:00
|
|
|
<key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
|
2009-09-04 01:36:32 +04:00
|
|
|
#else
|
2012-05-15 04:04:19 +04: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-04 01:36:32 +04:00
|
|
|
<key keycode="VK_F11" command="View:FullScreen"/>
|
2005-09-05 02:38:30 +04:00
|
|
|
#endif
|
2016-07-30 05:13:56 +03:00
|
|
|
<key id="toggleReaderMode" key="&toggleReaderMode.key;" command="View:ReaderView" modifiers="accel,alt" disabled="true"/>
|
2005-02-27 20:59:38 +03:00
|
|
|
<key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
|
|
|
|
<key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
|
2003-08-11 12:12:19 +04:00
|
|
|
<key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifndef XP_WIN
|
2003-08-11 12:12:19 +04:00
|
|
|
<key id="key_viewInfo" key="&pageInfoCmd.commandkey;" command="View:PageInfo" modifiers="accel"/>
|
2003-11-20 03:45:03 +03:00
|
|
|
#endif
|
2003-11-20 12:48:16 +03:00
|
|
|
<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"/>
|
2014-02-28 19:07:34 +04:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<key id="key_findSelection" key="&findSelectionCmd.commandkey;" command="cmd_findSelection" modifiers="accel"/>
|
|
|
|
#endif
|
2003-11-20 12:48:16 +03:00
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
|
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
|
|
|
|
|
2008-01-16 04:50:16 +03:00
|
|
|
<key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
|
2013-06-11 21:40:28 +04:00
|
|
|
# Accel+Shift+A-F are reserved on GTK
|
|
|
|
#ifndef MOZ_WIDGET_GTK
|
2011-01-28 19:46:49 +03:00
|
|
|
<key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" oncommand="PlacesCommandHook.bookmarkCurrentPages();" modifiers="accel,shift"/>
|
2009-03-26 15:54:53 +03: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"/>
|
2005-08-26 23:01:22 +04:00
|
|
|
#endif
|
2009-03-26 15:54:53 +03:00
|
|
|
<key id="viewBookmarksSidebarKb" key="&bookmarksCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
|
2003-11-20 03:45:03 +03:00
|
|
|
#ifdef XP_WIN
|
2010-05-11 08:28:18 +04:00
|
|
|
# Cmd+I is conventially mapped to Info on MacOS X, thus it should not be
|
|
|
|
# overridden for other purposes there.
|
2009-03-26 15:54:53 +03:00
|
|
|
<key id="viewBookmarksSidebarWinKb" key="&bookmarksWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
|
2003-11-17 05:27:26 +03:00
|
|
|
#endif
|
2013-05-05 00:11:18 +04:00
|
|
|
|
2012-12-21 01:16:11 +04:00
|
|
|
<key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/>
|
2010-05-11 08:28:18 +04:00
|
|
|
|
2003-08-11 12:12:19 +04:00
|
|
|
#ifdef XP_MACOSX
|
2012-12-21 01:16:11 +04:00
|
|
|
<key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" command="Browser:Stop"/>
|
2006-04-18 12:38:33 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
<key id="key_gotoHistory"
|
|
|
|
key="&historySidebarCmd.commandKey;"
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
modifiers="accel,shift"
|
2003-08-11 12:12:19 +04:00
|
|
|
#else
|
2006-04-18 12:38:33 +04:00
|
|
|
modifiers="accel"
|
2003-08-11 12:12:19 +04:00
|
|
|
#endif
|
2006-04-18 12:38:33 +04:00
|
|
|
command="viewHistorySidebar"/>
|
2006-03-02 00:36:53 +03:00
|
|
|
|
2007-10-26 03:02:20 +04:00
|
|
|
<key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
2008-04-23 12:04:08 +04:00
|
|
|
<key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
2007-10-26 03:02:20 +04: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 12:04:08 +04:00
|
|
|
<key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
2007-10-26 03:02:20 +04:00
|
|
|
<key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/>
|
2008-04-23 12:04:08 +04:00
|
|
|
<key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/>
|
2009-07-21 08:25:59 +04:00
|
|
|
|
|
|
|
<key id="key_showAllTabs" command="Browser:ShowAllTabs" keycode="VK_TAB" modifiers="control,shift"/>
|
|
|
|
|
2005-01-26 04:40:30 +03:00
|
|
|
<key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
|
2003-08-11 12:12:19 +04:00
|
|
|
|
2009-01-02 08:21:02 +03:00
|
|
|
<key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;" modifiers="accel,shift"/>
|
2005-02-25 12:07:58 +03:00
|
|
|
<key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
|
2006-02-02 03:23:03 +03:00
|
|
|
#ifdef XP_MACOSX
|
2006-10-10 17:41:40 +04:00
|
|
|
<key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/>
|
2016-05-06 12:38:44 +03:00
|
|
|
<key id="key_quitApplication" key="&quitApplicationCmdUnix.key;" modifiers="accel" reserved="true"/>
|
2014-05-27 21:02:13 +04:00
|
|
|
#elifdef XP_UNIX
|
2013-04-26 21:46:25 +04:00
|
|
|
<key id="key_quitApplication" key="&quitApplicationCmdUnix.key;" command="cmd_quitApplication" modifiers="accel"/>
|
2008-03-07 04:59:42 +03:00
|
|
|
#endif
|
|
|
|
|
2011-04-13 07:54:26 +04:00
|
|
|
#ifdef FULL_BROWSER_WINDOW
|
2006-10-10 17:41:40 +04:00
|
|
|
<key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
|
2011-04-13 07:54:26 +04:00
|
|
|
#endif
|
2009-04-23 10:50:30 +04:00
|
|
|
<key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/>
|
2008-05-02 18:50:42 +04:00
|
|
|
|
|
|
|
#ifdef XP_GNOME
|
|
|
|
#define NUM_SELECT_TAB_MODIFIER alt
|
|
|
|
#else
|
|
|
|
#define NUM_SELECT_TAB_MODIFIER accel
|
|
|
|
#endif
|
|
|
|
|
2008-09-02 12:50:22 +04: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 18:50:42 +04:00
|
|
|
|
2003-08-11 12:12:19 +04:00
|
|
|
</keyset>
|
|
|
|
|
2005-03-24 19:00:01 +03:00
|
|
|
# Used by baseMenuOverlay
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<commandset id="baseMenuCommandSet" />
|
|
|
|
#endif
|
|
|
|
<keyset id="baseMenuKeyset" />
|