mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why With a Russian keyboard layout, the keys for Ctrl+C and Ctrl+D can send Cyrillic characters, causing Codex to miss shortcuts for interrupting a turn, canceling a prompt, or exiting. ## What changed Use base-layout metadata from terminals that support the Kitty keyboard protocol to recognize Ctrl+C and Ctrl+D when the active layout produces a non-ASCII character. Respect bindings and chords in the focused keymap and preserve the original event during raw key capture. Give Ctrl+C cancellation priority in lists and approval prompts, including startup hook trust review. ## Testing Add regression coverage for interrupting a turn and exiting with Russian-layout key events, canceling command approval, and continuing without trusting startup hooks when Ctrl+C is pressed on the trust option. GitOrigin-RevId: bf5efba2de295f3665c883a95fd511089eee2aba