-
Notifications
You must be signed in to change notification settings - Fork 160
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
Global true not working when focus is on the input. #100
Comments
Hey @dholakiyaankit, I'm sorry to hear you're having issues. There is currently no I am not exactly sure what could be the cause of your issue from your description, but I strongly suspect that it's because of the Can you please try temporarily removing them and seeing if the global shortcuts are still not being triggered when you press the matching key combination? |
@greena13 thanks for your prompt reply, in-fact its not working by removing those events from input too. I don't know what's going wrong with this code. is there any way left to check? |
I've just remembered that there is some implicit behaviour that kicks in when Moustrap is bound to the window: it ignores keyboard events from inputs and a few others:
To override this behaviour, you'll currently need to reach into the internals of
Please note, I believe this function is used globally (you're overriding mousetrap's prototype method) - so it will affect your entire application. There will be a nicer way of doing this in the next major version of I'm going to close this issue for now, but let me know if you need anything further to get it working and I'll do my best to help. |
That's working like a charm, thanks! |
I have global filter inside this I have dynamic inputs, based on the user's selection its creating the textboxes in the UI, HotKeys works in all scenarios except when input is in focus
Here's my input when I am in focus of that the short keys not working.
Can you please let me know what I am doing wrong?
The text was updated successfully, but these errors were encountered: