Keyup Event Not Work in Chrome
Matthew Harrington
The problem has come for a long time for me.
The keyup events for key A-Z do not work in <input type="text"> in the latest version of Google Chrome (Version 79.0.3945.88 (Official Build) (64-bit)).
Only keys like ESC, Enter, Delete ... etc work.
Does anyone have the same problem?
Works:
Doesn't work:
31 Answer
Finally I found the reason why keyup does not work. It was because the English input of the Chinese input method "Chewing" is lightly different from native English input method.
Take typing a character "A" for example:
Native English Input Method
- keydown
- keypress
- "A"
- keyup
Chinese Chewing Input Method
- keydown
- "A"
Both of keypress and keydown event were not triggered.