mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +00:00
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:
parent
76f887892f
commit
6aa874ea6a
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue