mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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:
parent
1bcce50817
commit
78903dd1fc
1 changed files with 1 additions and 1 deletions
2
cli.py
2
cli.py
|
|
@ -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}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue