mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 10:55:46 +01:00
Move :downloads button logic into binding classes.
--HG-- branch : key-processing
This commit is contained in:
@@ -1083,7 +1083,6 @@ var CommandLine = Module("commandline", {
|
||||
// TODO: Wouldn't multiple handlers be cleaner? --djk
|
||||
if (event.type == "click" && event.target instanceof HTMLAnchorElement) {
|
||||
|
||||
util.dump(event.getPreventDefault(), event.target);
|
||||
if (event.getPreventDefault())
|
||||
return;
|
||||
|
||||
|
||||
@@ -92,7 +92,11 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
else if (this.actions.length) {
|
||||
if (actions.length == 0)
|
||||
dactyl.beep();
|
||||
result = this.actions[0]() === Events.PASS ? Events.PASS : Events.KILL;
|
||||
|
||||
if (modes.replaying && !events.waitForPageLoad())
|
||||
result = Events.KILL;
|
||||
else
|
||||
result = this.actions[0]() === Events.PASS ? Events.PASS : Events.KILL;
|
||||
}
|
||||
else if (result !== Events.KILL && processors.some(function (p) !p.main.passUnknown)) {
|
||||
result = Events.KILL;
|
||||
@@ -175,8 +179,6 @@ var KeyProcessor = Class("KeyProcessor", {
|
||||
return KeyArgProcessor(this, map, false, "arg");
|
||||
else if (map.motion)
|
||||
return KeyArgProcessor(this, map, true, "motion");
|
||||
else if (modes.replaying && !events.waitForPageLoad())
|
||||
return Events.KILL;
|
||||
|
||||
return this.execute(map, { count: this.count, command: this.command, events: this.events });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user