mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add a configurable F8 shortcut for voice conversations (#46071)
## What changed - Bind `F8` to start or stop a voice conversation through the existing voice toggle handler, preserving its start guards and the composer draft. - Expose `tui.keymap.chat.toggle_voice` in the configuration schema and keymap picker, with support for remapping, unbinding, and key chords. - Let the default yield to existing `F8` bindings and overlapping chord prefixes, and validate explicit bindings against shortcut conflicts and reserved text input. - Handle the shortcut only on key presses when no modal or popup is active. ## Testing Add tests for default and custom bindings, conflicts, chord dispatch, live remapping and unbinding, draft preservation, start guards, and popup and key-event handling. Add a snapshot for the voice shortcut editor. GitOrigin-RevId: e5e373e8eefa89bec4d5cbdca801616e312134b5
This commit is contained in:
1 parent
36b84c81ec
commit
ce03f22af6
18 files changed
+279
-33
No files matched your search
@@ -4139,6 +4139,7 @@
|
||||
"previous_permission_mode": null,
|
||||
"prompt_stack_back": null,
|
||||
"skip_question": null,
|
||||
"toggle_voice": null,
|
||||
"toggle_voice_mute": null
|
||||
},
|
||||
"composer": {
|
||||
@@ -4649,6 +4650,14 @@
|
||||
],
|
||||
"description": "Skip the focused question."
|
||||
},
|
||||
"toggle_voice": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/KeybindingsSpec"
|
||||
}
|
||||
],
|
||||
"description": "Start or stop a voice conversation."
|
||||
},
|
||||
"toggle_voice_mute": {
|
||||
"allOf": [
|
||||
{
|
||||
@@ -5008,6 +5017,7 @@
|
||||
"previous_permission_mode": null,
|
||||
"prompt_stack_back": null,
|
||||
"skip_question": null,
|
||||
"toggle_voice": null,
|
||||
"toggle_voice_mute": null
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user