mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-01 12:25:46 +01:00
Include properties file in XPI.
--HG-- extra : rebase_source : 805462bb09d1ac9011796e08bc67cbd704a733a4
This commit is contained in:
@@ -25,7 +25,7 @@ MAKE_JAR = sh $(BASE)/make_jar.sh
|
|||||||
# TODO: specify source files manually?
|
# TODO: specify source files manually?
|
||||||
JAR_BASES = $(TOP) $(BASE)
|
JAR_BASES = $(TOP) $(BASE)
|
||||||
JAR_DIRS = content skin locale modules
|
JAR_DIRS = content skin locale modules
|
||||||
JAR_TEXTS = js jsm css dtd xml xul html xhtml xsl
|
JAR_TEXTS = js jsm css dtd xml xul html xhtml xsl properties
|
||||||
JAR_BINS = png
|
JAR_BINS = png
|
||||||
|
|
||||||
CHROME = $(MANGLE)/
|
CHROME = $(MANGLE)/
|
||||||
|
|||||||
@@ -1130,15 +1130,17 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onClick: function onClick(event) {
|
onClick: function onClick(event) {
|
||||||
let command = event.originalTarget.getAttributeNS(NS, "command");
|
if (event.originalTarget instanceof Element) {
|
||||||
if (command && event.button == 0) {
|
let command = event.originalTarget.getAttributeNS(NS, "command");
|
||||||
event.preventDefault();
|
if (command && event.button == 0) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
if (dactyl.commands[command])
|
if (dactyl.commands[command])
|
||||||
dactyl.withSavedValues(["forceNewTab"], function () {
|
dactyl.withSavedValues(["forceNewTab"], function () {
|
||||||
dactyl.forceNewTab = event.ctrlKey || event.shiftKey || event.button == 1;
|
dactyl.forceNewTab = event.ctrlKey || event.shiftKey || event.button == 1;
|
||||||
dactyl.commands[command](event);
|
dactyl.commands[command](event);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user