mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 309860 - Dragging a url to the tabstrip ignores the shift key. r=mconnor.
This commit is contained in:
parent
9766533191
commit
a4f8d3f467
@ -1524,7 +1524,16 @@
|
||||
|
||||
if (aEvent.originalTarget.localName != "tab") {
|
||||
// We're adding a new tab.
|
||||
this.loadOneTab(getShortcutOrURI(url));
|
||||
var bgLoad = true;
|
||||
try {
|
||||
bgLoad = this.mPrefs.getBoolPref("browser.tabs.loadInBackground");
|
||||
}
|
||||
catch (e) { }
|
||||
|
||||
if (aEvent.shiftKey)
|
||||
bgLoad = !bgLoad;
|
||||
|
||||
this.loadOneTab(getShortcutOrURI(url), null, null, null, bgLoad);
|
||||
}
|
||||
else {
|
||||
// Load in an existing tab.
|
||||
|
Loading…
Reference in New Issue
Block a user