fix(voice): also map s- back to Shift+ in display string

Codex review caught that adding shift+->s- translation without updating
the display-string conversion would show 'S-F1' instead of 'SHIFT+F1'.
This commit is contained in:
r266-tech 2026-04-17 12:22:22 +08:00
parent 1bcce50817
commit 78903dd1fc

2
cli.py
View file

@ -7190,7 +7190,7 @@ class HermesCLI:
_ptt_key = _raw_ptt_lower.replace("ctrl+", "c-").replace("shift+", "s-") _ptt_key = _raw_ptt_lower.replace("ctrl+", "c-").replace("shift+", "s-")
except Exception: except Exception:
_ptt_key = "c-b" _ptt_key = "c-b"
_ptt_display = _ptt_key.replace("c-", "Ctrl+").upper() _ptt_display = _ptt_key.replace("c-", "Ctrl+").replace("s-", "Shift+").upper()
_cprint(f"\n{_ACCENT}Voice mode enabled{tts_status}{_RST}") _cprint(f"\n{_ACCENT}Voice mode enabled{tts_status}{_RST}")
_cprint(f" {_DIM}{_ptt_display} to start/stop recording{_RST}") _cprint(f" {_DIM}{_ptt_display} to start/stop recording{_RST}")
_cprint(f" {_DIM}/voice tts to toggle speech output{_RST}") _cprint(f" {_DIM}/voice tts to toggle speech output{_RST}")