-
Notifications
You must be signed in to change notification settings - Fork 94
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
Escape key should not close the editor #2199
Comments
@jancborchardt @nimishavijay What do you think about this one? I agree that initial escape should probably be catched during editing so that one could get the keyboard focus back to other ui elements, but not sure if we should then on the second escape not still close the viewer with text open. |
does the escape key also close Collabora ? for a viewer I think escape key closing is fine but not something you can work actively in |
I think that Text in Viewer is a bit different than a picture, video or PDF. If I open a file for editing, I wouldn't expect the editor to disappear when hitting Esc. Even not when hit a second time. That's why I would suggest to catch Esc in general and don't let it close the viewer. |
I think it's important for keyboard accessibility to have an easy way to close the editor using the keyboard. If nothing is selected/highlighted/no popovers or menus are open then I'd say it would be okay to close the editor. Since it feels like something "opened" like a modal, using |
Fully agree on that. Also tested with some other things:
|
It is especially painful when you use a ":" with a space before (as per French typography rules) and you get proposed emojis and you don't want them, you end up exiting the edition instead of getting out of the emoji selector. |
Might also be an accessibility feature if we let esc bring the focus back to the page outside the editor field. |
This is especially annoying as there is (as far as I know) no shortcut to close the formatting help popover except ESC, but that closes not only the formatting help but also the whole editor |
So we have at least four cases where Esc should not close the editor but instead do something else:
|
I would also add that whenever any of the formatting options have menus (eg emojis, callouts etc) which are open, the |
Describe the bug
Don't close the editor unexpectedly when hitting escape.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Editor stays open at all times when hitting Escape
Client details:
Server details:
c.nc.com
The text was updated successfully, but these errors were encountered: