Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Index

Enumeration members

ABNT_C1 = 110
ABNT_C2 = 111
Alt = 6
AudioVolumeDown = 114
AudioVolumeMute = 112
AudioVolumeUp = 113
Backquote = 86

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key

Backslash = 88

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '|' key

Backspace = 1
BracketLeft = 87

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '[{' key

BracketRight = 89

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ']}' key

BrowserBack = 117
BrowserForward = 118
BrowserHome = 116
BrowserSearch = 115
CapsLock = 8
Clear = 126

VK_CLEAR, 0x0C, CLEAR key

Comma = 82

For any country/region, the ',' key For the US standard keyboard, the ',<' key

ContextMenu = 58
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 = 81

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
F3 = 61
F4 = 62
F5 = 63
F6 = 64
F7 = 65
F8 = 66
F9 = 67
Home = 14
Insert = 19
IntlBackslash = 92

Either the angle bracket key or the backslash key on the RT 102-key keyboard.

KEY_IN_COMPOSITION = 109

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 = 125
LaunchMail = 124
LaunchMediaPlayer = 123
LeftArrow = 15
MAX_VALUE = 127

Placed last to cover the length of the enum. Please do not depend on this value!

MediaPlayPause = 122
MediaStop = 121
MediaTrackNext = 119
MediaTrackPrevious = 120
Meta = 57
Minus = 83

For any country/region, the '-' key For the US standard keyboard, the '-_' key

NUMPAD_SEPARATOR = 105
NumLock = 78
Numpad0 = 93
Numpad1 = 94
Numpad2 = 95
Numpad3 = 96
Numpad4 = 97
Numpad5 = 98
Numpad6 = 99
Numpad7 = 100
Numpad8 = 101
Numpad9 = 102
NumpadAdd = 104
NumpadDecimal = 107
NumpadDivide = 108
NumpadMultiply = 103
NumpadSubtract = 106
OEM_8 = 91

Used for miscellaneous characters; it can vary by keyboard.

PageDown = 12
PageUp = 11
PauseBreak = 7
Period = 84

For any country/region, the '.' key For the US standard keyboard, the '.>' key

Quote = 90

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ''"' key

RightArrow = 17
ScrollLock = 79
Semicolon = 80

Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key

Shift = 4
Slash = 85

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.

UpArrow = 16