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:
cst%andrew.cmu.edu 2005-06-08 00:16:35 +00:00
Родитель 43fe817836
Коммит 5a146d5cc0
3 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -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();"/>