onkeyup fires twice for arrow keys only
Steps to reproduce
- Assign focus to the text input below.
- Press a single alphanumeric character on the keyboard. The event.keyCode of that key will appear once in the red div.
- Press a single arrow key on the keyboard. The event.keyCode of that key will appear twice in the red div.
Expected behavior onkeyup fires once each time a key is released.
Actual behavior onkeyup fires twice when an arrow key is released.
This bug reported on WebmasterWorld by user mattx17 in this thread. Reported by whoisgregg.
Type here:
Outputs event.keyCode: