From 6d2ebff211a102f5ceeab41b6fe95d98ace2e1c1 Mon Sep 17 00:00:00 2001 From: KimYounghwan8750 Date: Mon, 3 Aug 2026 01:23:58 -0700 Subject: [PATCH] test(terminal): replay the native Windows IME Shift shape Adapted from the physical Windows event trace contributed on #11878. --- .../src/components/terminal-pane/keyboard-handlers-ime.test.tsx | 1 + .../terminal-pane/terminal-ime-deferred-newline.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/renderer/src/components/terminal-pane/keyboard-handlers-ime.test.tsx b/src/renderer/src/components/terminal-pane/keyboard-handlers-ime.test.tsx index eeb2eea36..6d25e856e 100644 --- a/src/renderer/src/components/terminal-pane/keyboard-handlers-ime.test.tsx +++ b/src/renderer/src/components/terminal-pane/keyboard-handlers-ime.test.tsx @@ -313,6 +313,7 @@ describe('Windows IME keyboard ownership', () => { }) it.each([ + { code: 'ShiftLeft', shiftKey: true }, { code: 'KeyQ', shiftKey: true }, { code: 'KeyW', ctrlKey: true } ])('keeps an IME-consumed $code out of terminal shortcuts', (modifier) => { diff --git a/src/renderer/src/components/terminal-pane/terminal-ime-deferred-newline.test.ts b/src/renderer/src/components/terminal-pane/terminal-ime-deferred-newline.test.ts index 3f42c98e9..12f917c80 100644 --- a/src/renderer/src/components/terminal-pane/terminal-ime-deferred-newline.test.ts +++ b/src/renderer/src/components/terminal-pane/terminal-ime-deferred-newline.test.ts @@ -350,6 +350,7 @@ describe('isTerminalImeProcessEnter', () => { { shiftKey: false }, { ctrlKey: true }, { altKey: true }, + { code: 'ShiftLeft' }, { code: 'KeyQ' }, { code: 'ArrowLeft' } ])('rejects a non-IME or ambiguous Process key', (override) => {