mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-07 21:15:48 +01:00
@@ -530,8 +530,7 @@ var Events = Module("events", {
|
|||||||
*/
|
*/
|
||||||
playMacro: function (macro) {
|
playMacro: function (macro) {
|
||||||
let res = false;
|
let res = false;
|
||||||
dactyl.assert(!/[a-zA-Z0-9@]/.test(macro) && macro.length == 1,
|
dactyl.assert(/^[a-zA-Z0-9@]$/.test(macro), _("macro.invalid", macro));
|
||||||
_("macro.invalid", macro));
|
|
||||||
|
|
||||||
if (macro == "@")
|
if (macro == "@")
|
||||||
dactyl.assert(this._lastMacro, _("macro.noPrevious"));
|
dactyl.assert(this._lastMacro, _("macro.noPrevious"));
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ macro.loadWaiting = Waiting for page to load...
|
|||||||
macro.noSuch- = Macro '%S' not set
|
macro.noSuch- = Macro '%S' not set
|
||||||
macro.noPrevious = No previous macro
|
macro.noPrevious = No previous macro
|
||||||
macro.invalid- = Invalid macro name: '%S'
|
macro.invalid- = Invalid macro name: '%S'
|
||||||
|
macro.notSet- = Exxx: Register '%S' not set
|
||||||
|
|
||||||
map.builtinImmutable = Cannot change mappings in the builtin group
|
map.builtinImmutable = Cannot change mappings in the builtin group
|
||||||
map.none = No mapping found
|
map.none = No mapping found
|
||||||
|
|||||||
Reference in New Issue
Block a user