1
0
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:
Kris Maglione
2011-01-26 06:48:13 -05:00
parent 6bac5bf865
commit e6f565b884
9 changed files with 175 additions and 101 deletions

View File

@@ -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;
}