Some of those are really strange.
Eg if I hold backspace, it keeps counting keyDown but doesn't add even one keyPress. Whereas if I hold a letter key, it keeps spamming both?
I feel like in both cases keyDown should fire once per physical press and then wait for keyUp before being able to fire again for this keycode. In nether case did it do that.
keyPress on the other hand can do whatever it damn pleases, including reacting only to characters appearing, I don't care :v
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Some of those are really strange.
Eg if I hold backspace, it keeps counting
keyDown
but doesn't add even onekeyPress
. Whereas if I hold a letter key, it keeps spamming both?I think the difference has to do with
keyPress
only registering actual characters like letters and numbers, whilekeyDown
registers any key.I feel like in both cases
keyDown
should fire once per physical press and then wait forkeyUp
before being able to fire again for this keycode. In nether case did it do that.keyPress
on the other hand can do whatever it damn pleases, including reacting only to characters appearing, I don't care :v