Esc shouldn't enter normal mode when focus is away from the editor itself
Scenario:
Have a tooltip or a panel open and press [esc] to close them. That works, but it also switches to normal mode.
Normal/Edit mode should be switchable only when the focus is solely on the editor.
I can't reproduce this. SimpleVim uses VSCode's keybinding with "when": "editorTextFocus" which I think should give you the behavior you want. For example if I do the following steps it remains in insert mode:
- Enter insert mode
- Open VSCode's command palette
- Press escape
If you want to use a different when clause you can easily override the escape keybinding for SimpleVim via the normal VSCode keybinding method and use a different when clause. If you have a suggestion for a modified when clause to include as the default in SimpleVim let me know what it is.