зеркало из https://github.com/mozilla/pjs.git
Make "shift" always toggle the sense of the
"browser.tabs.loadInBackground" pref. Bug 113072, patch by Christopher Aillon <caillon@returnzero.com>, r=doron, sr=jag
This commit is contained in:
Родитель
ce3c6ecb30
Коммит
384a956f74
|
@ -188,7 +188,10 @@
|
|||
getBrowser() && getBrowser().localName == "tabbrowser") {
|
||||
|
||||
theTab = getBrowser().addTab(href, getReferrer(document)); // open link in new tab
|
||||
if (!event.shiftKey && !pref.getBoolPref("browser.tabs.loadInBackground"))
|
||||
var loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");
|
||||
if (event.shiftKey)
|
||||
loadInBackground = !loadInBackground;
|
||||
if (!loadInBackground)
|
||||
getBrowser().selectedTab = theTab;
|
||||
event.preventBubble();
|
||||
return true;
|
||||
|
@ -221,7 +224,10 @@
|
|||
if (pref && pref.getBoolPref("browser.tabs.opentabfor.middleclick") && getBrowser &&
|
||||
getBrowser() && getBrowser().localName == "tabbrowser") {
|
||||
theTab = getBrowser().addTab(href, getReferrer(document)); // open link in new tab
|
||||
if (!event.shiftKey && !pref.getBoolPref("browser.tabs.loadInBackground"))
|
||||
var loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");
|
||||
if (event.shiftKey)
|
||||
loadInBackground = !loadInBackground;
|
||||
if (!loadInBackground)
|
||||
getBrowser().selectedTab = theTab;
|
||||
event.preventBubble();
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче