зеркало из https://github.com/mozilla/pjs.git
Bug 219203 This patch adds shift+bksp -> forward, based on the same pref as bksp -> back.
r=timeless sr=neil a=asa
This commit is contained in:
Родитель
43fe817836
Коммит
5a146d5cc0
|
@ -913,6 +913,18 @@ function BrowserForward()
|
|||
}
|
||||
}
|
||||
|
||||
function BrowserHandleShiftBackspace()
|
||||
{
|
||||
switch (pref.getIntPref("browser.backspace_action")) {
|
||||
case 0:
|
||||
BrowserForward();
|
||||
break;
|
||||
case 1:
|
||||
goDoCommand("cmd_scrollPageDown");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function SetGroupHistory(popupMenu, direction)
|
||||
{
|
||||
while (popupMenu.firstChild)
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
<key id="key_selectAll"/>
|
||||
<key id="key_switchTextDirection"/>
|
||||
|
||||
<!-- View Menu -->
|
||||
<!-- View Menu -->
|
||||
<key id="key_reload" key="&reloadCmd.commandkey;" oncommand="BrowserReload();" modifiers="accel"/>
|
||||
<key key="&reloadCmd.commandkey;" oncommand="BrowserReloadSkipCache();" modifiers="accel,shift"/>
|
||||
<key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
|
||||
|
@ -106,6 +106,8 @@
|
|||
<key id="key_findTypeLinks"/>
|
||||
|
||||
<!-- Go Menu -->
|
||||
<key keycode="VK_BACK" command="cmd_handleBackspace"/>
|
||||
<key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
|
||||
|
||||
<!-- Bookmarks Menu -->
|
||||
<key id="addBookmarkAsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
|
||||
|
@ -128,6 +130,7 @@
|
|||
<command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
|
||||
<command id="cmd_newTabWithTarget" oncommand="contentAreaClick(event);"/>
|
||||
<command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
|
||||
<command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
|
||||
|
||||
<command id="cmd_newEditor"/>
|
||||
<!-- NOT IMPLEMENTED
|
||||
|
|
|
@ -12,12 +12,6 @@
|
|||
<key id="goForwardKb" keycode="&goForwardCmd.keyCode;" command="Browser:Forward" modifiers="alt"/>
|
||||
<key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
|
||||
|
||||
<!-- Supporting IE forward and back accelerators out of courtesy
|
||||
to transitioning IE users -->
|
||||
<!-- Backspace is also used by type ahead find -->
|
||||
<key keycode="VK_BACK" command="cmd_handleBackspace"/>
|
||||
<key keycode="VK_BACK" command="Browser:Forward" modifiers="shift"/>
|
||||
|
||||
<!-- Supporting IE 'refresh' shortcut key -->
|
||||
<key keycode="VK_F5" oncommand="BrowserReload();"/>
|
||||
<key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче