Felipe Coury
7fbe0a8018
Fix TUI Ctrl+C and Ctrl+D on non-ASCII keyboard layouts ( #65162 )
...
## 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
2026-12-02 03:58:37 +00:00
..
2026-12-02 01:06:48 +00:00
2026-11-19 00:06:45 +00:00
2026-11-14 01:34:43 +00:00
2026-12-01 16:07:34 +00:00
2026-12-01 23:59:56 +00:00
2026-12-02 03:58:37 +00:00
2026-11-17 06:32:38 +00:00
2026-11-30 17:40:02 +00:00
2026-12-02 01:06:48 +00:00
2026-11-22 21:20:06 +00:00
2026-11-18 02:04:55 +00:00
2026-11-26 19:54:18 +00:00
2026-11-18 22:13:26 +00:00
2026-11-21 15:14:53 +00:00
2026-12-02 03:58:37 +00:00
2026-11-18 22:13:26 +00:00
2026-12-01 05:20:42 +00:00
2026-12-01 05:20:42 +00:00
2026-11-21 15:14:53 +00:00
2026-11-27 05:03:45 +00:00
2026-11-22 15:50:07 +00:00
2026-12-01 21:18:55 +00:00
2026-11-21 15:14:53 +00:00
2026-12-01 23:22:59 +00:00
2026-12-01 05:20:42 +00:00
2026-12-01 05:20:42 +00:00
2026-11-21 15:14:53 +00:00
2026-11-30 21:19:57 +00:00
2026-12-01 16:41:22 +00:00
2026-11-24 11:05:19 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-11-18 18:28:58 +00:00
2026-11-30 22:25:03 +00:00
2026-12-02 03:33:04 +00:00
2026-12-01 19:17:41 +00:00
2026-12-01 05:20:42 +00:00
2026-12-02 03:33:04 +00:00
2026-11-12 01:57:33 +00:00
2026-11-29 01:29:23 +00:00
2026-12-01 23:13:10 +00:00
2026-11-17 05:52:43 +00:00
2026-11-17 05:52:43 +00:00
2026-12-02 03:58:37 +00:00
2026-11-30 00:39:15 +00:00
2026-11-25 02:00:08 +00:00
2026-12-01 16:41:22 +00:00
2026-11-30 21:19:57 +00:00
2026-11-20 07:14:27 +00:00
2026-11-20 07:14:27 +00:00
2026-11-24 06:15:04 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-12-01 17:07:18 +00:00
2026-11-19 00:59:23 +00:00
2026-11-10 07:06:53 +00:00
2026-11-26 17:55:06 +00:00
2026-11-15 01:46:01 +00:00
2026-11-15 01:46:01 +00:00
2026-11-17 00:13:04 +00:00
2026-12-01 05:32:15 +00:00
2026-11-25 01:42:33 +00:00
2026-11-30 17:40:02 +00:00
2026-12-02 03:58:37 +00:00
2026-11-25 22:43:58 +00:00
2026-11-21 01:14:17 +00:00
2026-11-20 07:14:27 +00:00
2026-12-01 20:47:55 +00:00
2026-11-30 22:25:03 +00:00
2026-11-25 22:54:56 +00:00
2026-11-25 22:54:56 +00:00
2026-11-30 22:39:43 +00:00
2026-11-10 18:32:00 +00:00
2026-11-25 01:13:00 +00:00
2026-11-30 19:37:56 +00:00
2026-12-01 20:29:37 +00:00
2026-12-01 23:13:10 +00:00
2026-11-13 04:51:06 +00:00
2026-11-24 19:55:43 +00:00
2026-11-24 06:15:04 +00:00
2026-11-14 01:34:43 +00:00
2026-11-25 02:31:54 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-11-20 07:14:27 +00:00
2026-11-20 07:14:27 +00:00
2026-11-30 17:40:02 +00:00
2026-12-01 16:41:22 +00:00
2026-12-01 05:32:15 +00:00
2026-11-26 17:55:06 +00:00
2026-11-30 17:00:53 +00:00
2026-11-24 06:15:04 +00:00
2026-11-18 22:40:03 +00:00
2026-11-20 07:14:27 +00:00
2026-12-01 23:03:41 +00:00
2026-11-21 15:14:53 +00:00
2026-11-18 22:13:26 +00:00
2026-11-27 04:03:51 +00:00
2026-11-27 04:54:59 +00:00
2026-11-25 22:43:58 +00:00
2026-12-01 23:22:59 +00:00
2026-11-26 00:30:45 +00:00
2026-11-25 11:49:41 +00:00
2026-11-30 17:14:19 +00:00
2026-11-30 19:37:56 +00:00
2026-11-27 04:54:59 +00:00
2026-11-26 20:24:42 +00:00
2026-11-18 22:13:26 +00:00
2026-11-26 19:54:18 +00:00
2026-11-26 21:08:29 +00:00
2026-11-26 19:54:18 +00:00
2026-11-22 20:15:11 +00:00
2026-12-02 03:33:04 +00:00
2026-11-25 11:49:41 +00:00
2026-11-27 04:02:55 +00:00
2026-11-27 04:54:59 +00:00
2026-11-30 22:08:33 +00:00
2026-12-01 17:07:18 +00:00
2026-12-02 03:33:04 +00:00
2026-11-19 00:59:23 +00:00
2026-11-17 13:10:04 +00:00
2026-11-19 00:59:23 +00:00
2026-11-19 00:59:23 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-11-26 19:54:18 +00:00
2026-11-10 14:28:13 +00:00
2026-11-27 01:14:33 +00:00
2026-11-27 22:52:25 +00:00
2026-11-18 18:28:58 +00:00
2026-12-02 03:33:04 +00:00
2026-11-27 22:52:25 +00:00
2026-11-27 22:52:25 +00:00
2026-12-01 23:22:59 +00:00
2026-12-02 03:33:04 +00:00
2026-11-30 22:40:58 +00:00
2026-11-30 22:40:58 +00:00
2026-11-30 19:37:56 +00:00
2026-11-13 18:50:28 +00:00
2026-12-01 20:47:55 +00:00
2026-11-13 04:51:06 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 03:33:04 +00:00
2026-11-25 02:31:54 +00:00
2026-11-18 03:08:53 +00:00
2026-12-01 21:18:55 +00:00
2026-11-27 04:02:55 +00:00