1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 12:17:59 +01:00

Fixed browser.followLink so that NEW_TAB semantics are invariant of prefs.

This commit is contained in:
Ted Pavlic
2009-01-08 12:01:31 -05:00
parent 3a98dfc589
commit bfe47dff89
3 changed files with 9 additions and 14 deletions

View File

@@ -1123,8 +1123,10 @@ function Buffer() //{{{
{
case liberator.NEW_TAB:
case liberator.NEW_BACKGROUND_TAB:
let invertLogic = !options.getPref("browser.tabs.loadInBackground");
let backgroundDesired = (where == liberator.NEW_BACKGROUND_TAB);
ctrlKey = true;
shiftKey = (where != liberator.NEW_BACKGROUND_TAB);
shiftKey = invertLogic ? backgroundDesired : !backgroundDesired;
break;
case liberator.NEW_WINDOW:
shiftKey = true;