-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Tab focus gets trapped #5444
Comments
At some point, I let people convince me that the editor should override tab by default. I think that was a bad call, now, but won't be able to change it until the next major release. You can disable the default tab binding with an option like |
Ah, that makes sense. Thank you. I'm going to change the behavior in my app to something like "Use |
Sorry for reviving old topic, but I have exactly same case - I wan't to disable tab-to-indent functionality if user focused editor via keyboard (and I have that up and working with In other words: I want to conditionally enable/disable default tab-functionality of CodeMirror.
But, unfortunately this does not pass event handling to browser even if the class is present (focus is still trapped within editor instance) and overwrites default behaviour of adding indentation as well. So, my question would be: what would be a proper way to achieve that, and is it possible to restore original key handling of codemirror after it has been disabled with Thanks for your time! |
You should be able to, if you have an object |
Yup, that did the job! Thanks for your support. |
What about |
(Just make sure your binding has a higher precedence than the default binding for Shift-Tab) |
Yes, it works now. The problem in my case was that I have a hidden So, what I was doing when pressing I have multiple CodeMirror instances and other form elements in a form. Any suggestions? Setting the |
When I tab into the example at https://codemirror.net/, I'm unable to tab out (Chrome 67, macOS). The only relevant issue I could find is #1909. Is there a trick to tabbing out of the CodeMirror widget, or is this a bug?
The text was updated successfully, but these errors were encountered: