mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:52:25 +01:00
Allow <C-c> in recorded macros.
This commit is contained in:
@@ -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 <C-c> in a macro.
|
||||
if (key == "<C-c>")
|
||||
if (key == "<C-c>" && !event.ismacro)
|
||||
{
|
||||
liberator.modes.isReplaying = false;
|
||||
liberator.echo("Canceled playback of macro '" + lastMacro + "'");
|
||||
|
||||
Reference in New Issue
Block a user