mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-18 16:08:55 +00:00
`[[contributes.keymaps]]` accepts `key = "Escape"` with a required `when`. Plain keys stayed out of plugin shortcuts, and Escape could not be added as a shortcut anyway: the IDE's own keymap uses it, so the binding would be dropped. It becomes the editor's lowest-precedence Escape handler instead: the command runs once popups, completion, rename, selection, extra carets and Vim had no use for the key, and only while its `when` holds (the latest plugin's binding first). `when` is accepted only on such a binding; manifests that set it elsewhere, or bind Escape on one platform only, are refused.