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

Fix macro playback.

Closes issue #405.
This commit is contained in:
Doug Kearns
2011-02-27 20:32:24 +11:00
parent 56b8f99ba2
commit e14d120d01
2 changed files with 2 additions and 2 deletions

View File

@@ -530,8 +530,7 @@ var Events = Module("events", {
*/
playMacro: function (macro) {
let res = false;
dactyl.assert(!/[a-zA-Z0-9@]/.test(macro) && macro.length == 1,
_("macro.invalid", macro));
dactyl.assert(/^[a-zA-Z0-9@]$/.test(macro), _("macro.invalid", macro));
if (macro == "@")
dactyl.assert(this._lastMacro, _("macro.noPrevious"));