mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 22:55:45 +01:00
Fix some errors in :command-complete-custom. Fix some help tags not appearing.
This commit is contained in:
@@ -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>":
|
||||
|
||||
Reference in New Issue
Block a user