mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 326737
Respect shift key state when opening link in new tab from the context menu r=jag sr=neil
This commit is contained in:
parent
61f8de7625
commit
f9ae1c323e
@ -78,7 +78,7 @@
|
||||
<menuitem id="context-openlinkintab"
|
||||
label="&openLinkCmdInTab.label;"
|
||||
accesskey="&openLinkCmdInTab.accesskey;"
|
||||
oncommand="gContextMenu.openLinkInTab();"/>
|
||||
oncommand="gContextMenu.openLinkInTab(event.shiftKey);"/>
|
||||
<menuseparator id="context-sep-open"/>
|
||||
<menuitem id="context-bookmarklink"
|
||||
label="&bookmarkLinkCmd.label;"
|
||||
@ -201,7 +201,7 @@
|
||||
oncommand="gContextMenu.openFrame();"/>
|
||||
<menuitem label="&openFrameCmdInTab.label;"
|
||||
accesskey="&openFrameCmdInTab.accesskey;"
|
||||
oncommand="gContextMenu.openFrameInTab();"/>
|
||||
oncommand="gContextMenu.openFrameInTab(event.shiftKey);"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="context-reload-frame"
|
||||
label="&reloadFrameCmd.label;"
|
||||
|
@ -521,14 +521,14 @@ nsContextMenu.prototype = {
|
||||
openNewWindowWith( this.linkURL(), true );
|
||||
},
|
||||
// Open linked-to URL in a new tab.
|
||||
openLinkInTab : function () {
|
||||
openLinkInTab : function ( reverseBackgroundPref ) {
|
||||
// Determine linked-to URL.
|
||||
openNewTabWith( this.linkURL(), true, false );
|
||||
openNewTabWith( this.linkURL(), true, reverseBackgroundPref );
|
||||
},
|
||||
// Open frame in a new tab.
|
||||
openFrameInTab : function () {
|
||||
openFrameInTab : function ( reverseBackgroundPref ) {
|
||||
// Determine linked-to URL.
|
||||
openNewTabWith( this.target.ownerDocument.location.href );
|
||||
openNewTabWith( this.target.ownerDocument.location.href, true, reverseBackgroundPref );
|
||||
},
|
||||
// Reload clicked-in frame.
|
||||
reloadFrame : function () {
|
||||
|
Loading…
Reference in New Issue
Block a user