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

UNotes visual editor often loses focus #144

Closed
epikgit opened this issue Nov 8, 2022 · 2 comments
Closed

UNotes visual editor often loses focus #144

epikgit opened this issue Nov 8, 2022 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@epikgit
Copy link

epikgit commented Nov 8, 2022

Hello Ryan,
Thank you for your work. I've just seen your commits for the 1.5 and I can't wait to test the new version.

I'm opening this issue because of the loss of focus.
This problem is starting to become really annoying for people like me that use UNotes extensively.
The focus goes lost after any window change (ALT+TAB, switch with a taskbar button) and there is no way to put it back in the WYSIWYG editor other than using the f***ing mouse.
Sometimes, after a change, I see the caret blinking once and then disappearing. Maybe is the issue tied with the auto save feature? Because I imagine that when the window re-take the focus it saves the document and probably the saving is responsible for the loss of focus.

If solving the issue is too difficult, is it possible to implement a shortcut to reset the focus on the document? Possibly on the last known caret position.
You've already set a lot of shortcuts and I tested all of them. For example unotes.openWith opens the current document from file explorer in UNotes but doesn't put the focus in it...).
The shortcut unotes.toggleMode is the more promising. It opens the MD editor and puts the focus in it but if you toggle the editor again you have finally the focus on the WYSIWYG editor. It works but it is a bit cumberstone.

My setup:

  • Windows 10 21H2
  • VS Code 1.73.0 (x64)
  • UNotes 1.4.4

Thank you

@ryanmcalister ryanmcalister added bug Something isn't working enhancement New feature or request labels Nov 8, 2022
ryanmcalister added a commit that referenced this issue Nov 18, 2022
@ryanmcalister
Copy link
Owner

Thanks for the suggestion. In v1.5.0 I added a focus hotkey and also a new setting unotes.editor.extraFocus to help with this issue. Hope that helps.

@epikgit
Copy link
Author

epikgit commented Nov 19, 2022

Dear Ryan,
I've just updated UNotes to 1.5.0 and the autofocus feature is working perfectly. Even if the focus goes lost in some rare and unpredictable situations, the new hotkey is decisive.
Thank you.

@epikgit epikgit closed this as completed Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants