1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 21:25:47 +01:00

Fix some errors in :command-complete-custom. Fix some help tags not appearing.

This commit is contained in:
Kris Maglione
2011-01-19 17:54:17 -05:00
parent 067b8d2a6c
commit a0ad529424
10 changed files with 61 additions and 40 deletions

View File

@@ -1103,17 +1103,8 @@ var CommandLine = Module("commandline", {
if (event.type == "click" && (event.target instanceof HTMLAnchorElement ||
event.originalTarget.hasAttributeNS(NS, "command"))) {
let command = event.originalTarget.getAttributeNS(NS, "command");
if (command && event.button == 2)
return PASS;
if (command && dactyl.commands[command]) {
event.preventDefault();
return dactyl.withSavedValues(["forceNewTab"], function () {
dactyl.forceNewTab = event.ctrlKey || event.shiftKey || event.button == 1;
return dactyl.commands[command](event);
});
}
if (event.getPreventDefault())
return;
switch (key) {
case "<LeftMouse>":