1
0
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:
Kris Maglione
2012-06-02 14:53:28 -04:00
parent 5010bc9f97
commit af2fccc5f6
2 changed files with 4 additions and 3 deletions

View File

@@ -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
};

View File

@@ -105,7 +105,7 @@ var Services = Module("Services", {
this.addClass("Transferable", "@mozilla.org/widget/transferable;1", "nsITransferable");
this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback");
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("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]);
this.addClass("ZipReader", "@mozilla.org/libjar/zip-reader;1", "nsIZipReader", "open", false);