[PALEMOON] Fix document navigation using F6

This commit is contained in:
JustOff 2018-08-23 23:29:38 +03:00 • committed by Roy Tam
commit 1b447a979b
4 changed files with 2 additions and 12 deletions

View file

@ -79,7 +79,6 @@
<command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/> <command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/>
<command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/> <command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/>
<command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/> <command id="Browser:ShowAllTabs" oncommand="allTabs.open();"/>
<command id="Browser:FocusNextFrame" oncommand="focusNextFrame(event);"/>
<command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/> <command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/>
<command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/> <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
<command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/> <command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/>
@ -251,8 +250,6 @@
#ifndef XP_MACOSX #ifndef XP_MACOSX
<key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/> <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
<key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/> <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
<key keycode="VK_F6" command="Browser:FocusNextFrame"/>
<key keycode="VK_F6" command="Browser:FocusNextFrame" modifiers="shift"/>
<key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/> <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
#else #else
<key id="key_fullScreen" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,control"/> <key id="key_fullScreen" key="&fullScreenCmd.macCommandKey;" command="View:FullScreen" modifiers="accel,control"/>

View file

@ -7222,14 +7222,6 @@ var MousePosTracker = {
} }
}; };
function focusNextFrame(event) {
let fm = Services.focus;
let dir = event.shiftKey ? fm.MOVEFOCUS_BACKWARDDOC : fm.MOVEFOCUS_FORWARDDOC;
let element = fm.moveFocus(window, null, dir, fm.FLAG_BYKEY);
if (element.ownerDocument == document)
focusAndSelectUrlBar();
}
var BrowserChromeTest = { var BrowserChromeTest = {
_cb: null, _cb: null,
_ready: false, _ready: false,

View file

@ -59,6 +59,7 @@
macanimationtype="document" macanimationtype="document"
screenX="4" screenY="4" screenX="4" screenY="4"
fullscreenbutton="true" fullscreenbutton="true"
retargetdocumentfocus="urlbar"
persist="screenX screenY width height sizemode"> persist="screenX screenY width height sizemode">
# All JS files which are not content (only) dependent that browser.xul # All JS files which are not content (only) dependent that browser.xul

View file

@ -35,7 +35,7 @@
oncommand="goDoCommand('downloadsCmd_clearList')"/> oncommand="goDoCommand('downloadsCmd_clearList')"/>
</commandset> </commandset>
<popupset> <popupset id="mainPopupSet">
<!-- The panel has level="top" to ensure that it is never hidden by the <!-- The panel has level="top" to ensure that it is never hidden by the
taskbar on Windows. See bug 672365. For accessibility to screen taskbar on Windows. See bug 672365. For accessibility to screen
readers, we use a label on the panel instead of the anchor because the readers, we use a label on the panel instead of the anchor because the