Files
1grzyb1 2744cad962 VIM-2593 Navigate out of the terminal with <C-W>
With "Override IDE shortcuts" on, the terminal sends every key to the
shell from its own IdeEventQueue dispatcher, unless the key is the keymap
shortcut of an action on its allowlist. The <C-W> shortcuts of
ToolWindowNavDispatcher are registered on the component, not in the
keymap, so in the terminal <C-W> deleted a word in the shell and the
direction key was typed there too.

A queue dispatcher of our own now runs before the terminal's one and,
while the focus is in the Terminal tool window, gives the keys of a <C-W>
sequence to ToolWindowNavDispatcher directly. Going through the action
system doesn't work there: for the keys on the terminal's allowlist, such
as the arrows or Enter, the terminal's own action wins, and plain letters
aren't shortcuts in an editable editor. The terminal adds its dispatcher
whenever it gets the focus, so ours is added when VimEverywhere starts.

The test runs the terminal's real key dispatcher, so it fails if the
terminal starts to take the keys before the dispatchers added earlier.
2026-11-19 12:18:54 +01:00
..
2026-04-20 13:40:32 +02:00
2024-10-21 16:11:29 +03:00
2026-10-06 11:46:19 +02:00
2024-10-21 14:13:31 +03:00