Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Keyup Event Not Work in Chrome

Writer 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:

3

1 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

  1. keydown
  2. keypress
  3. "A"
  4. keyup

Chinese Chewing Input Method

  1. keydown
  2. "A"

Both of keypress and keydown event were not triggered.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy