[GH-ISSUE #1324] Losing focus when pressing esc in vim mode #498

Open
opened 2026-03-03 00:21:36 +03:00 by kerem · 5 comments
Owner

Originally created by @Rokt33r on GitHub (Nov 18, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1324

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.

Originally created by @Rokt33r on GitHub (Nov 18, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1324 # 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.
Author
Owner

@webbdays commented on GitHub (Mar 1, 2022):

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

<!-- gh-comment-id:1055601153 --> @webbdays commented on GitHub (Mar 1, 2022): Loosing focus ? Is it that view is changed to the different location of the code in the file? For view
Author
Owner

@Komediruzecki commented on GitHub (Mar 1, 2022):

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.

<!-- gh-comment-id:1055625312 --> @Komediruzecki commented on GitHub (Mar 1, 2022): 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.
Author
Owner

@webbdays commented on GitHub (Mar 1, 2022):

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

<!-- gh-comment-id:1055661893 --> @webbdays commented on GitHub (Mar 1, 2022): I didn't understand what is loosing focus here ? Please explain.
Author
Owner

@webbdays commented on GitHub (Mar 1, 2022):

Now I got it.
The cursor disappears.

<!-- gh-comment-id:1055676904 --> @webbdays commented on GitHub (Mar 1, 2022): Now I got it. The cursor disappears.
Author
Owner

@Komediruzecki commented on GitHub (Mar 1, 2022):

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.

<!-- gh-comment-id:1055758688 --> @Komediruzecki commented on GitHub (Mar 1, 2022): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#498
No description provided.