본문 바로가기
✘✘✘ Javascript

Keyboard Event: How to detect keyboard you typed: e.which, e.keycode, e.key, e.charcode, e.code

by PrettyLog 2022. 6. 29.

which, keycode, key, charcode, code

when I type 'f',

charCode: 0
keyCode: 70
key='f'
code='KeyF'
which: 102
  • charCode, keyCode: deprecated
  • charCode: Non-standard

Reference

댓글