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
'✘✘✘ Javascript' 카테고리의 다른 글
[javascript] Promise vs setTimeout:: why Promise resolved first? (0) | 2023.01.07 |
---|---|
[javascript] how to parse string to number, Number, parseInt, + (0) | 2022.07.12 |
[javascript] IIFE(immediately invoked function expression) (0) | 2022.07.12 |
[javascript][event] Detect mouse right click: context menu (0) | 2022.07.05 |
Event vs CustomEvent && How to trigger event with data (0) | 2022.06.27 |
댓글