mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:07: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 { dactyl } = this.modules;
|
||||||
|
|
||||||
let ctrlKey = false, shiftKey = false;
|
let ctrlKey = false, shiftKey = false;
|
||||||
|
let button = 0;
|
||||||
switch (dactyl.forceTarget || where) {
|
switch (dactyl.forceTarget || where) {
|
||||||
case dactyl.NEW_TAB:
|
case dactyl.NEW_TAB:
|
||||||
case dactyl.NEW_BACKGROUND_TAB:
|
case dactyl.NEW_BACKGROUND_TAB:
|
||||||
ctrlKey = true;
|
button = 1;
|
||||||
shiftKey = dactyl.forceBackground != null ? dactyl.forceBackground
|
shiftKey = dactyl.forceBackground != null ? dactyl.forceBackground
|
||||||
: where != dactyl.NEW_BACKGROUND_TAB;
|
: where != dactyl.NEW_BACKGROUND_TAB;
|
||||||
break;
|
break;
|
||||||
@@ -476,7 +477,7 @@ var Buffer = Module("Buffer", {
|
|||||||
prefs.withContext(function () {
|
prefs.withContext(function () {
|
||||||
prefs.set("browser.tabs.loadInBackground", true);
|
prefs.set("browser.tabs.loadInBackground", true);
|
||||||
let params = {
|
let params = {
|
||||||
screenX: offsetX, screenY: offsetY,
|
button: button, screenX: offsetX, screenY: offsetY,
|
||||||
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey
|
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ var Services = Module("Services", {
|
|||||||
this.addClass("Transferable", "@mozilla.org/widget/transferable;1", "nsITransferable");
|
this.addClass("Transferable", "@mozilla.org/widget/transferable;1", "nsITransferable");
|
||||||
this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback");
|
this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback");
|
||||||
this.addClass("URL", "@mozilla.org/network/standard-url;1", ["nsIStandardURL", "nsIURL"], "init");
|
this.addClass("URL", "@mozilla.org/network/standard-url;1", ["nsIStandardURL", "nsIURL"], "init");
|
||||||
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", "nsIXMLHttpRequest", "open");
|
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", [], "open");
|
||||||
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", "nsIDOMXPathEvaluator");
|
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", "nsIDOMXPathEvaluator");
|
||||||
this.addClass("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]);
|
this.addClass("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]);
|
||||||
this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", "nsIZipReader", "open", false);
|
this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", "nsIZipReader", "open", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user