1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 11:54:11 +01:00

Fix error trapping in events.feedkeys.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 01:49:10 -05:00
parent 15b2909bc1
commit 163539ab29
3 changed files with 19 additions and 13 deletions

View File

@@ -255,15 +255,15 @@ var Events = Module("events", {
* @returns {boolean}
*/
feedkeys: function (keys, noremap, quiet, mode) {
let wasFeeding = this.feedingKeys;
this.feedingKeys = true;
this.duringFeed = this.duringFeed || [];
let wasQuiet = commandline.quiet;
if (quiet)
commandline.quiet = quiet;
try {
var wasFeeding = this.feedingKeys;
this.feedingKeys = true;
this.duringFeed = this.duringFeed || [];
var wasQuiet = commandline.quiet;
if (quiet)
commandline.quiet = quiet;
util.threadYield(1, true);
for (let [, evt_obj] in Iterator(events.fromString(keys))) {