minmie
10b91f607e
fix(terminal): prevent mid-composition IME keydowns from duplicating voice input ( #4304 )
...
* fix(terminal): prevent mid-composition IME keydowns from duplicating voice input
Ignore sentinel mid-composition keydowns (keyCode 0 or Unidentified/Process/Dead/Compose) so xterm.js does not call _finalizeComposition(false) before voice ITN/AI polish finishes, preserve early synchronous commit state so trailing compositionend emits only the minimal diff, and track the last committed composition text for in-place consecutive rewrites.
* fix(terminal): invalidate early IME diff on terminal-mutating keys and keep tests ASCII-only
Address PR #4304 review feedback:
- Narrow sentinel keydown detection so non-empty keyCode 0 events (e.g. iOS UIKeyInput arrows) are not swallowed.
- Suppress early-sync backspace diffing and follow-up in-place rewrites when a mid-composition keydown can mutate terminal state or move the PTY cursor (such as ArrowLeft or Home).
- Escape CJK test fixtures as \uXXXX in imeCompositionRewrite.test.ts to preserve ASCII-only source files.
2026-11-23 16:44:31 +08:00
..
2026-11-23 11:00:14 +08:00
2026-09-12 17:16:38 +08:00
2026-09-12 16:48:31 +08:00
2026-10-15 14:13:46 +08:00
2026-11-23 11:00:14 +08:00
2026-10-25 00:38:58 +08:00
2026-11-23 11:00:14 +08:00
2026-11-23 11:00:14 +08:00
2026-10-29 19:32:02 -07:00
2026-10-23 07:55:24 +08:00
2026-10-26 23:16:06 +08:00
2026-11-23 11:00:14 +08:00
2026-10-13 17:35:01 +08:00
2026-10-13 17:35:01 +08:00
2026-09-29 00:24:27 +08:00
2026-09-29 00:24:27 +08:00
2026-07-23 23:13:18 +08:00
2026-07-23 23:13:18 +08:00
2026-11-23 16:44:31 +08:00
2026-11-23 16:44:31 +08:00
2026-10-20 14:15:59 +08:00
2026-10-20 14:15:59 +08:00
2026-10-20 13:53:52 +08:00
2026-10-20 13:53:52 +08:00
2026-08-09 21:38:32 +08:00
2026-08-09 21:38:32 +08:00
2026-07-22 11:56:53 +08:00
2026-08-11 21:35:31 +08:00
2026-08-11 21:43:52 +08:00
2026-10-20 13:53:52 +08:00
2026-08-18 13:59:56 +08:00
2026-08-18 13:59:56 +08:00
2026-07-23 22:18:31 +08:00
2026-07-23 22:18:31 +08:00
2026-11-21 13:55:51 +08:00
2026-11-21 13:55:51 +08:00
2026-11-03 20:38:28 -08:00
2026-09-12 13:10:52 +08:00
2026-09-12 13:10:52 +08:00
2026-09-18 15:19:34 +08:00
2026-09-12 13:10:52 +08:00
2026-11-03 20:38:28 -08:00
2026-10-20 13:53:52 +08:00
2026-10-26 23:16:06 +08:00
2026-11-03 20:38:28 -08:00
2026-10-20 16:39:44 +08:00
2026-10-20 16:39:44 +08:00
2026-11-21 15:49:45 +08:00
2026-11-21 15:49:45 +08:00
2026-10-30 07:11:27 -07:00
2026-10-23 19:22:56 +08:00
2026-10-23 19:22:56 +08:00
2026-10-20 14:19:59 +08:00
2026-10-20 14:19:59 +08:00
2026-10-20 16:39:44 +08:00
2026-11-06 22:08:09 +08:00
2026-07-29 03:33:00 +08:00
2026-08-05 19:18:57 +08:00
2026-08-05 19:18:57 +08:00
2026-10-20 16:39:44 +08:00
2026-10-20 16:39:44 +08:00
2026-09-29 20:05:51 +08:00
2026-11-23 15:00:06 +08:00
2026-09-29 17:34:00 +08:00
2026-09-29 17:34:00 +08:00
2026-09-07 10:30:38 +08:00
2026-11-23 11:00:14 +08:00
2026-09-18 14:11:05 +08:00
2026-08-27 13:51:58 +08:00
2026-08-27 15:43:24 +08:00
2026-08-26 18:29:25 +08:00
2026-09-18 14:11:05 +08:00
2026-09-18 14:11:05 +08:00
2026-11-03 20:38:28 -08:00
2026-11-03 20:38:28 -08:00
2026-10-29 02:08:05 -07:00
2026-11-23 11:00:14 +08:00
2026-10-17 02:26:36 +08:00
2026-10-17 02:26:36 +08:00
2026-09-07 11:11:10 +08:00
2026-10-22 13:30:54 +08:00
2026-09-07 11:11:10 +08:00
2026-08-13 21:26:16 +08:00
2026-09-05 13:13:56 +08:00
2026-09-18 15:19:34 +08:00
2026-09-30 00:38:50 +08:00
2026-10-26 23:16:06 +08:00
2026-10-26 23:16:06 +08:00
2026-09-18 15:19:34 +08:00
2026-09-18 14:10:58 +08:00
2026-07-23 09:42:47 +08:00
2026-09-05 13:13:56 +08:00
2026-10-23 07:55:24 +08:00
2026-11-20 15:53:40 +08:00
2026-11-23 11:00:14 +08:00
2026-10-25 00:38:58 +08:00
2026-07-23 23:26:31 +08:00
2026-07-23 23:26:31 +08:00
2026-07-25 08:39:59 +08:00
2026-07-25 08:39:59 +08:00
2026-10-20 13:27:39 +08:00
2026-10-20 13:27:39 +08:00
2026-08-13 21:26:16 +08:00
2026-11-03 20:38:28 -08:00
2026-07-23 09:42:47 +08:00
2026-07-23 09:42:47 +08:00
2026-11-14 18:21:32 +08:00
2026-11-14 18:21:32 +08:00
2026-07-24 15:02:30 +08:00
2026-11-14 18:21:32 +08:00
2026-11-14 18:21:32 +08:00
2026-09-02 17:58:52 +08:00
2026-09-02 17:58:52 +08:00
2026-08-13 21:26:16 +08:00
2026-08-13 21:26:16 +08:00