4 ms·
Keyup doesn't account for holding down keys either. It's keydown that is what you're after for that one.
by Hengjie 13y ago
Keyup doesn't account for holding down keys either. It's keydown that is what you're after for that one.
- dmbass 13y agoYou want the oninput event, but IE < 10 has horrible support for it. Figuring out when the input value has changed is a lot more complicated than picking one of onkeyup/down/pressed.