Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing focus when pressing esc in vim mode #1324

Open
Rokt33r opened this issue Nov 18, 2021 · 5 comments
Open

Losing focus when pressing esc in vim mode #1324

Rokt33r opened this issue Nov 18, 2021 · 5 comments
Labels
bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new!

Comments

@Rokt33r
Copy link
Member

Rokt33r commented Nov 18, 2021

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 Rokt33r added bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! labels Nov 18, 2021
@webbdays
Copy link

webbdays commented Mar 1, 2022

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

@Komediruzecki
Copy link
Contributor

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.

@webbdays
Copy link

webbdays commented Mar 1, 2022

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

@webbdays
Copy link

webbdays commented Mar 1, 2022

Now I got it.
The cursor disappears.

@Komediruzecki
Copy link
Contributor

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new!
Projects
None yet
Development

No branches or pull requests

3 participants