-
Notifications
You must be signed in to change notification settings - Fork 36
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
How can "forceConsider" be set to true? #70
Comments
@valp124 Are you wanting key bindings to work while a form element is focused? |
@glortho Not a form element per se -- because there is no form -- but in practice is happens to be textarea in this case. I work in a complex single page app environment (https://www.os-js.org/) and don't always control what is in focus, the "os" is managing virtual windows, desktop icons, etc. The upshot of all this is: I want to be able to force the escape key action regardless of what appears to be the target. |
If I understand #69 correctly, it should. I suppose that's the effect I would achieve if I could set forceConsider to true. |
Ok @valp124 stay tuned for that. I'm hoping to work with @sheldonrong to get that merged next week. |
I need to set forceConsider argument to _onKeyDown function in event_handler.js to true. How can this be done?
The reason I need that is that I need to be able to cancel an action with an escape key, regardless of where the target is. In my case, the target sometimes falls into the black list of _shouldConsider function, and then my code doesn't work.
Thanks a lot.
The text was updated successfully, but these errors were encountered: