KeyboardEvent keyMap

key code keyCode
Escape Escape 27
F1 F1 112(新建标签帮助)
F2 F2 113
F3 F3 114
F4 F4 115
F5 F5 116(快捷键刷新)
F6 F6 117
F7 F7 118
F8 F8 119(debug)
F9 F9 120
F10 F10 121
F11 F11 122(全屏)
F12 F12 123(控制台)
` Backquote 192
1 or ! Digit1 49
2 or @ Digit2 50
3 or # Digit3 51
4 or $ Digit4 52
5 or % Digit5 53
6 or ^ Digit6 54
7 or & Digit7 55
8 or * Digit8 56
9 or ( Digit9 57
0 or ) Digit0 48
- or _ Minus 189
= or + Equal 187
Backspace Backspace 8
Tab Tab 9
Q or q KeyQ 81
W or w KeyW 87
E or e KeyE 69
R or r KeyR 82
T or t KeyT 84
Y or y KeyY 89
U or u KeyU 85
I or i KeyI 73
O or o KeyO 79
P or p KeyP 80
[ or { BracketLeft 219
] or } BracketRight 221
\ or | BackSlash 220
Caps CapsLock 20
A or a KeyA 65
S or s KeyS 83
D or d KeyD 68
F or f KeyF 70
G or g KeyG 71
H or h KeyH 72
J or j KeyJ 74
K or k KeyK 75
L or l KeyL 76
; or : Semicolon 186
’ or " Quote 222
Enter Enter 13
Shift ShiftLeft 16
Z or z KeyZ 90
X or x KeyX 88
C or c KeyC 67
V or v KeyV 86
B or b KeyB 66
N or n KeyN 78
M or m KeyM 77
, or < Comma 188
. or > Period 190
/ or ? Slash 191
Shift ShiftRight 16
Ctrl (Control) ControlLeft 17
Win (Meta) MetaLeft 91
Alt AltLeft 18
(空格) Space 32
Alt AltRight 18
Win (Meta) MetaRight 92
Ctrl (Control) ControlRight 17
Insert Insert 45
Home Home 36
PgUp(PageUp) PageUp 33
Del(Delete) Delete 46
End End 35
PgDn(PageDown) PageDown 34
↑(ArrowUp) ArrowUp 38
↓(ArrowDown) ArrowDown 40
←(ArrowLeft) ArrowLeft 37
→(ArrowRight) ArrowRight 39

你可能感兴趣的:(js)