mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 20:24:13 +01:00
@@ -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"));
|
||||
|
||||
@@ -53,6 +53,7 @@ macro.loadWaiting = Waiting for page to load...
|
||||
macro.noSuch- = Macro '%S' not set
|
||||
macro.noPrevious = No previous macro
|
||||
macro.invalid- = Invalid macro name: '%S'
|
||||
macro.notSet- = Exxx: Register '%S' not set
|
||||
|
||||
map.builtinImmutable = Cannot change mappings in the builtin group
|
||||
map.none = No mapping found
|
||||
|
||||
Reference in New Issue
Block a user