-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Transitioning from insert mode to editor normal mode without losing cursor focus? [Question] #26
Comments
Hi There is nothing in win-vind to make the transition from Insert Mode to Editor Normal Mode lose focus of text field. What application's text field are you targeting? Perhaps the same keystroke as Thanks again |
Hi, This happens even when using the default shortcut (esc+right). I'm not sure if it happens everywhere, but it does happen in multiple instances, even in this comment field. It sometimes happens and sometimes don't. For example it happens in this GitHub comment field, but doesn't happen in notepad. Thanks. |
Sorry for my late reply. I tried but could not reproduce the phenomenon. Can you give me the details of .vindrc and the name of your browser? Thanks. |
No problem. I use the Microsoft Edge (Chromium based) browser. Here is my .vindrc:
Apparently the issue occurs when the text field can lose focus, like by pressing Thanks |
Thanks for the quick reply! I'll try it. |
Thanks to your report, I found some bugs in the parser of .vindrc. As soon as fixed, I will give you its build binary. However, I still don't know the cause of the loss of focus, as I could not reproduce. Hopefully, this fix will solve it indirectly. Thanks |
Hi, Thanks |
Thanks for trying. |
Hi, |
Hi, just a quick update. I just found out that this issue resolves when changing the hotkey to something that is written in the input field. For example, I don't face the issue when I make the Thanks |
Well, this is embarrassing 😅. It was apparently the shortcut causing the issue. I also just changed my shortcut to something not typed like ctrl-/ and now it works without losing focus. Sorry for that, and thanks again for your efforts. I believe the default shortcut might need changing because esc causes many input fields to lose focus. Thanks again, and I am sorry for consuming your time. Feel free to close the issue if you like. |
Even little things can be helpful for development. A feature to prevent losing focus is implementable. I'm sure some users would be helped by this option. |
Yes, I agree with that. It would be better to have such an option. |
Thank you for waiting. I added a new option To enable set autofocus_textarea |
Hi, |
Today, I released v4.1 and it includes the new option |
Hi, |
Question
Currently, switching from insert mode to editor normal mode causes the text field to lose focus, requiring clicking on the field to activate the text cursor again which is inconvenient. Is it possible to make the switch without the editor losing focus?
Thanks
The text was updated successfully, but these errors were encountered: