-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Disable "Escape Hatch" #758
Comments
There isn't, and that is kind of by design—you really need to have some way to let keyboard-only users move out of the editor. Do you have some other solution for that? |
Okay I understand that it's about solving the keyboard trap issue.
What do you think about that? |
commands/src/commands.ts search for Escape it will be assigned to simplifySelection, you can comment it out |
FIX: To avoid interfering with things like a vim mode too much, the editor will now only activate the tab-to-move-focus escape hatch after an escape press that wasn't handled by an event handler. Issue codemirror/dev#758
Attached patch changes the behavior to only let tab presses through after an escape press that wasn't handled by the editor's event handlers. This unfortunately opens new opportunities for people with blanket esc handlers to screw this up, but it should help a lot with your use case (assuming esc is let through unmolested in command mode -- is it?) |
I am using the VIM extension with code mirror that requires lots of Escape inputs. As I use the VIM plugin in conjunction with TAB to insert spaces at the start of a line I often run into the issue that the view looses focus because
ESC + TAB
is pressed frequently.Therefore, I want to disable the Escape hatch but find nothing in the documentation at https://codemirror.net/6/docs/ref/.
Is it possible to disable the escape hatch?
The text was updated successfully, but these errors were encountered: