Skip to content
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 to prevent multiple keypress #163

Open
benshaty opened this issue Aug 7, 2016 · 0 comments
Open

how to prevent multiple keypress #163

benshaty opened this issue Aug 7, 2016 · 0 comments

Comments

@benshaty
Copy link

benshaty commented Aug 7, 2016

Hi,
Im using this awsome script for keyboard popups. I set the "H" key for help window. My problem that if you long press "H"key the popup go crazy (show / hide evey second). I tried: $(document).ready(function(){
$(document).on('keypress',function(e){
var keyPress= String.fromCharCode(e.which);
key.unbind(keyPress);
});
});`

But it didn`t work.
what can i do to fix it?
thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant