diff --git a/content/events.js b/content/events.js index 4491c0ec..5c4e5a31 100644 --- a/content/events.js +++ b/content/events.js @@ -843,6 +843,7 @@ liberator.Events = function () //{{{ var evt = doc.createEvent("KeyEvents"); evt.initKeyEvent("keypress", true, true, view, ctrl, alt, shift, meta, keyCode, charCode); evt.noremap = noremap; + evt.ismacro = true; elem.dispatchEvent(evt); // stop feeding keys if page loading failed if (!liberator.modes.isReplaying) @@ -1143,7 +1144,7 @@ liberator.Events = function () //{{{ if (liberator.modes.isReplaying) { // XXX: Prevents using in a macro. - if (key == "") + if (key == "" && !event.ismacro) { liberator.modes.isReplaying = false; liberator.echo("Canceled playback of macro '" + lastMacro + "'");