Character Codes from Keyboard Listeners
If I create the following keyboard event listeners for keydown
, keypress
, and keyup
:
and then I press A
, my browser console will read the following:
and if I then press a
, my browser console will read:
The keypress
event seems to be the way to go. Regardless, there seems to be quite a bit of incompatibility and lack of support across browsers for various aspects of the keyboard events.
Last updated