BoostNote-App icon indicating copy to clipboard operation
BoostNote-App copied to clipboard

Losing focus when pressing esc in vim mode

Open Rokt33r opened this issue 4 years ago • 5 comments

Current behavior

Pressing esc key to exit insert mode makes losing focus of the editor.

Expected behavior

The editor should exit insert mode but it should not lose focusing.

Rokt33r avatar Nov 18 '21 13:11 Rokt33r

Loosing focus ? Is it that view is changed to the different location of the code in the file? For view

webbdays avatar Mar 01 '22 16:03 webbdays

No, the codemirror editor component unfortunately loses focus, the behaviour is a known issue when using VIM and contenteditable, so it has a fix but the fix breaks few other features (e.g., IME in codemirror), which is something new version of CodeMirror (v6) is trying to overcome.

Komediruzecki avatar Mar 01 '22 16:03 Komediruzecki

I didn't understand what is loosing focus here ? Please explain.

webbdays avatar Mar 01 '22 17:03 webbdays

Now I got it. The cursor disappears.

webbdays avatar Mar 01 '22 17:03 webbdays

Yes, the cursor disappears since the component where you write text loses focus, so you basically cannot go back and be in view VIM mode.

Komediruzecki avatar Mar 01 '22 19:03 Komediruzecki