mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 644186 - Open a new window when shift-clicking the "Open a new tab" button. r=Dao
This commit is contained in:
parent
e50ff8e205
commit
fd8a3c8c5f
@ -20,7 +20,7 @@
|
||||
<command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
|
||||
<command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
|
||||
|
||||
<command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
|
||||
<command id="cmd_newNavigatorTab" oncommand="BrowserOpenNewTabOrWindow(event);"/>
|
||||
<command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
|
||||
<command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
|
||||
|
||||
|
@ -7203,3 +7203,11 @@ let BrowserChromeTest = {
|
||||
this._cb = cb;
|
||||
}
|
||||
};
|
||||
|
||||
function BrowserOpenNewTabOrWindow(event) {
|
||||
if (event.shiftKey) {
|
||||
OpenBrowserWindow();
|
||||
} else {
|
||||
BrowserOpenTab();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user