test(terminal): add regression guard for Ctrl+Alt+Arrow passthrough

Ensures the new Ctrl+Arrow word-nav translation does not accidentally
match Ctrl+Alt+Arrow, which Linux desktops use for workspace switching.
This commit is contained in:
brennanb2025 2026-04-19 22:26:36 -07:00
parent 76f887892f
commit 6aa874ea6a

View file

@ -209,6 +209,14 @@ describe('resolveTerminalShortcutAction', () => {
)
).toBeNull()
// Ctrl+Alt+Arrow (Linux workspace switching on some desktops) must pass through on non-Mac.
expect(
resolveTerminalShortcutAction(
event({ key: 'ArrowLeft', code: 'ArrowLeft', ctrlKey: true, altKey: true }),
false
)
).toBeNull()
// Regression guard: plain ArrowLeft must still pass through untouched.
expect(
resolveTerminalShortcutAction(event({ key: 'ArrowLeft', code: 'ArrowLeft' }), true)