mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 07:34:13 +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)
|
if (key == "<C-c>" && !event.isMacro)
|
||||||
{
|
{
|
||||||
events.feedingKeys = false;
|
events.feedingKeys = false;
|
||||||
if (lastMacro)
|
if (modes.isReplaying)
|
||||||
|
{
|
||||||
|
modes.isReplaying = false;
|
||||||
setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100);
|
setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100);
|
||||||
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user