Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
brooklyn! 2026-05-04 13:24:34 -07:00 committed by GitHub
parent be8223130b
commit 731ec86a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,13 +130,15 @@ const _NAMED_KEY_ALIASES: Record<string, VoiceRecordKeyNamed> = {
tab: 'tab' tab: 'tab'
} }
/** ``useInputHandlers()`` intercepts these before the voice check runs, /** ``useInputHandlers()`` and terminal-level shortcuts intercept these
* so a binding like ``ctrl+c`` (interrupt), ``ctrl+d`` (quit), or * before the voice check runs, so bindings like ``ctrl+c`` (interrupt),
* ``ctrl+l`` (clear screen) would be advertised in /voice status but * ``ctrl+d`` (quit), ``ctrl+l`` (clear screen), or ``ctrl+x`` (queue-edit
* never actually fire push-to-talk. Reject at parse time so the user * cut) would be advertised in /voice status but never reliably fire
* gets the documented Ctrl+B instead of a dead shortcut (Copilot * push-to-talk. On macOS the same dead action chords also apply to
* round-4 review on #19835). */ * ``super+c`` / ``super+d`` / ``super+l`` when the parser treats them as
const _RESERVED_CTRL_CHARS = new Set(['c', 'd', 'l']) * action-modifier bindings. Reject them at parse time so the user gets
* the documented working shortcut instead of a dead one. */
const _RESERVED_CTRL_CHARS = new Set(['c', 'd', 'l', 'x'])
/** On macOS the action-modifier also intercepts standard editor chords /** On macOS the action-modifier also intercepts standard editor chords
* via ``isCopyShortcut`` / ``isAction`` in ``useInputHandlers()``: * via ``isCopyShortcut`` / ``isAction`` in ``useInputHandlers()``: