Enumeration KeyCode
Expand description
Enumeration Members§
ABNT_C1 = 115
ABNT_C2 = 116
Alt = 6
AudioVolumeDown = 119
AudioVolumeMute = 117
AudioVolumeUp = 118
Backquote = 91
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key
Backslash = 93
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '|' key
Backspace = 1
BracketLeft = 92
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '[{' key
BracketRight = 94
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ']}' key
BrowserBack = 122
BrowserForward = 123
BrowserHome = 121
BrowserSearch = 120
CapsLock = 8
Clear = 131
VK_CLEAR, 0x0C, CLEAR key
Comma = 87
For any country/region, the ',' key For the US standard keyboard, the ',<' key
Ctrl = 5
Delete = 20
DependsOnKbLayout = -1
Digit0 = 21
Digit1 = 22
Digit2 = 23
Digit3 = 24
Digit4 = 25
Digit5 = 26
Digit6 = 27
Digit7 = 28
Digit8 = 29
Digit9 = 30
DownArrow = 18
End = 13
Enter = 3
Equal = 86
For any country/region, the '+' key For the US standard keyboard, the '=+' key
Escape = 9
F1 = 59
F10 = 68
F11 = 69
F12 = 70
F13 = 71
F14 = 72
F15 = 73
F16 = 74
F17 = 75
F18 = 76
F19 = 77
F2 = 60
F20 = 78
F21 = 79
F22 = 80
F23 = 81
F24 = 82
F3 = 61
F4 = 62
F5 = 63
F6 = 64
F7 = 65
F8 = 66
F9 = 67
Home = 14
Insert = 19
IntlBackslash = 97
Either the angle bracket key or the backslash key on the RT 102-key keyboard.
KEY_IN_COMPOSITION = 114
Cover all key codes when IME is processing input.
KeyA = 31
KeyB = 32
KeyC = 33
KeyD = 34
KeyE = 35
KeyF = 36
KeyG = 37
KeyH = 38
KeyI = 39
KeyJ = 40
KeyK = 41
KeyL = 42
KeyM = 43
KeyN = 44
KeyO = 45
KeyP = 46
KeyQ = 47
KeyR = 48
KeyS = 49
KeyT = 50
KeyU = 51
KeyV = 52
KeyW = 53
KeyX = 54
KeyY = 55
KeyZ = 56
LaunchApp2 = 130
LaunchMail = 129
LaunchMediaPlayer = 128
LeftArrow = 15
MAX_VALUE = 132
Placed last to cover the length of the enum. Please do not depend on this value!
MediaPlayPause = 127
MediaStop = 126
MediaTrackNext = 124
MediaTrackPrevious = 125
Meta = 57
Minus = 88
For any country/region, the '-' key For the US standard keyboard, the '-_' key
NumLock = 83
NUMPAD_SEPARATOR = 110
Numpad0 = 98
Numpad1 = 99
Numpad2 = 100
Numpad3 = 101
Numpad4 = 102
Numpad5 = 103
Numpad6 = 104
Numpad7 = 105
Numpad8 = 106
Numpad9 = 107
NumpadAdd = 109
NumpadDecimal = 112
NumpadDivide = 113
NumpadMultiply = 108
NumpadSubtract = 111
OEM_8 = 96
Used for miscellaneous characters; it can vary by keyboard.
PageDown = 12
PageUp = 11
PauseBreak = 7
Period = 89
For any country/region, the '.' key For the US standard keyboard, the '.>' key
Quote = 95
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ''"' key
RightArrow = 17
ScrollLock = 84
Semicolon = 85
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key
Shift = 4
Slash = 90
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '/?' key
Space = 10
Tab = 2
Unknown = 0
Placed first to cover the 0 value of the enum.
Virtual Key Codes, the value does not hold any inherent meaning. Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx But these are "more general", as they should work across browsers & OS`s.