1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 17:05:45 +01:00

Include properties file in XPI.

--HG--
extra : rebase_source : 805462bb09d1ac9011796e08bc67cbd704a733a4
This commit is contained in:
Kris Maglione
2011-02-26 08:35:41 -05:00
parent 6ecdef37dd
commit 32d119561d
2 changed files with 11 additions and 9 deletions

View File

@@ -1130,15 +1130,17 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
},
onClick: function onClick(event) {
let command = event.originalTarget.getAttributeNS(NS, "command");
if (command && event.button == 0) {
event.preventDefault();
if (event.originalTarget instanceof Element) {
let command = event.originalTarget.getAttributeNS(NS, "command");
if (command && event.button == 0) {
event.preventDefault();
if (dactyl.commands[command])
dactyl.withSavedValues(["forceNewTab"], function () {
dactyl.forceNewTab = event.ctrlKey || event.shiftKey || event.button == 1;
dactyl.commands[command](event);
});
if (dactyl.commands[command])
dactyl.withSavedValues(["forceNewTab"], function () {
dactyl.forceNewTab = event.ctrlKey || event.shiftKey || event.button == 1;
dactyl.commands[command](event);
});
}
}
},