1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:57:58 +01:00

Show 'recording' message when showmode is false.

This commit is contained in:
Kris Maglione
2011-10-03 04:36:00 -04:00
parent 36400872f2
commit dcb203b71d
2 changed files with 7 additions and 6 deletions

View File

@@ -244,7 +244,7 @@ var Events = Module("events", {
dactyl.assert(macro == null || /[a-zA-Z0-9]/.test(macro),
_("macro.invalid", macro));
modes.recording = !!macro;
modes.recording = macro;
if (/[A-Z]/.test(macro)) { // uppercase (append)
macro = macro.toLowerCase();

View File

@@ -229,9 +229,12 @@ var Modes = Module("modes", {
// when recording a macro
let macromode = "";
if (this.recording)
macromode = "recording";
macromode = " recording " + this.recording;
else if (this.replaying)
macromode = "replaying";
macromode = " replaying";
if (!options.get("showmode").getKey(this.main.allBases, false))
return macromode;
let val = this._modeMap[this._main].display();
if (val)
@@ -306,9 +309,7 @@ var Modes = Module("modes", {
if (!loaded.modes)
return;
let msg = null;
if (options.get("showmode").getKey(this.main.allBases, false))
msg = this._getModeMessage();
let msg = this._getModeMessage();
if (msg || loaded.commandline)
commandline.widgets.mode = msg || null;