We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
First of all, congrats for your work on this lib! It is really awesome.
I ran into a problem when setting an hotkey to give the focus to a field :
hotkeys.add({ hotkey: 't a', description: 'Feel field', callback: function() { jQuery('#field').focus().val(''); } });
When a press t and then a the field is correctly focused, but the a is typed inside the field, which I don't want.
t
a
Do you have any solution to solve this problem?
Thank you for your help
Regards
The text was updated successfully, but these errors were encountered:
Thanks for being brave and using it early! Though I hope to have this library wrapped up and out of experimental-use pretty soon.
This can be accomplished pretty easily by preventing the event from propagating:
hotkeys.add({ hotkey: 't a', description: 'Feel field', callback: function(event) { event.preventDefault(); jQuery('#field').focus().val(''); } });
Sorry, something went wrong.
So obvious 😉
Thank you very much for your quick answer!
chieffancypants
No branches or pull requests
Hi!
First of all, congrats for your work on this lib! It is really awesome.
I ran into a problem when setting an hotkey to give the focus to a field :
When a press
t
and thena
the field is correctly focused, but thea
is typed inside the field, which I don't want.Do you have any solution to solve this problem?
Thank you for your help
Regards
The text was updated successfully, but these errors were encountered: