mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:57:59 +01:00
Add macro utility bindings. Add named aliases for some mappings.
--HG-- branch : key-processing
This commit is contained in:
@@ -113,9 +113,17 @@ var Map = Class("Map", {
|
||||
if (this.executing)
|
||||
util.dumpStack("Attempt to execute mapping recursively: " + args.command);
|
||||
dactyl.assert(!this.executing, "Attempt to execute mapping recursively: " + args.command);
|
||||
this.executing = true;
|
||||
let res = dactyl.trapErrors(repeat);
|
||||
this.executing = false;
|
||||
|
||||
try {
|
||||
this.executing = true;
|
||||
var res = repeat();
|
||||
}
|
||||
catch (e) {
|
||||
events.feedingKeys = false;
|
||||
}
|
||||
finally {
|
||||
this.executing = false;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user