mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 10:04:12 +01:00
Cancel the isReplaying macro mode when a macro is interrupted.
This commit is contained in:
@@ -1375,8 +1375,11 @@ function Events() //{{{
|
||||
if (key == "<C-c>" && !event.isMacro)
|
||||
{
|
||||
events.feedingKeys = false;
|
||||
if (lastMacro)
|
||||
if (modes.isReplaying)
|
||||
{
|
||||
modes.isReplaying = false;
|
||||
setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100);
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user