mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 05:57:59 +01:00
Use <Mouse2> rather than <C-Mouse1> in buffer.followLink to open in new tab.
This commit is contained in:
@@ -457,10 +457,11 @@ var Buffer = Module("Buffer", {
|
||||
let { dactyl } = this.modules;
|
||||
|
||||
let ctrlKey = false, shiftKey = false;
|
||||
let button = 0;
|
||||
switch (dactyl.forceTarget || where) {
|
||||
case dactyl.NEW_TAB:
|
||||
case dactyl.NEW_BACKGROUND_TAB:
|
||||
ctrlKey = true;
|
||||
button = 1;
|
||||
shiftKey = dactyl.forceBackground != null ? dactyl.forceBackground
|
||||
: where != dactyl.NEW_BACKGROUND_TAB;
|
||||
break;
|
||||
@@ -476,7 +477,7 @@ var Buffer = Module("Buffer", {
|
||||
prefs.withContext(function () {
|
||||
prefs.set("browser.tabs.loadInBackground", true);
|
||||
let params = {
|
||||
screenX: offsetX, screenY: offsetY,
|
||||
button: button, screenX: offsetX, screenY: offsetY,
|
||||
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user