Wednesday 15 April 2015

javascript - Check if a key is down? -


Is there a way to find out that a key is currently down in javascript?

I know the "keydown" incident, but it's not what I want. After some time the key is pressed, I want to know that it is still suppressed.

P.S. The biggest issue is that after some time the key begins to repeat, closing the keydown and clamping down like an innocent. Hopefully there is only one simple keydown (key) function, but if not, then this problem should be removed / worked.

Is there a way to find out if a key is currently down in javascript?

No. The only probability is monitoring each funnel and keydown and remembering.

Repeat the key after some time, a key like closed keydown and frustrated events.

It should not be done. You will definitely repeat keypress , and in many browsers, you get repeatedly keydown , but if keys repeats, this is a bug

Unfortunately, this is not completely unheard-bug: Linux, Chromium, and Firefox (when it's being run under GTK +, which is in popular sales like Ubuntu) Key-keypage to organize keys - keying sequence, which Kill rapidly key in Tv that are impossible to distinguish from.


No comments:

Post a Comment