mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1623856 - Make shift-click reload button open a new window. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D86464
This commit is contained in:
parent
0a671b3936
commit
ddf0b0df24
@ -2794,15 +2794,6 @@ function BrowserStop() {
|
||||
|
||||
function BrowserReloadOrDuplicate(aEvent) {
|
||||
aEvent = getRootEvent(aEvent);
|
||||
let accelKeyPressed =
|
||||
AppConstants.platform == "macosx" ? aEvent.metaKey : aEvent.ctrlKey;
|
||||
var backgroundTabModifier = aEvent.button == 1 || accelKeyPressed;
|
||||
|
||||
if (aEvent.shiftKey && !backgroundTabModifier) {
|
||||
BrowserReloadSkipCache();
|
||||
return;
|
||||
}
|
||||
|
||||
let where = whereToOpenLink(aEvent, false, true);
|
||||
if (where == "current") {
|
||||
BrowserReload();
|
||||
|
Loading…
Reference in New Issue
Block a user