Enum VirtualKey
Virtual-key codes.
Assembly: Dalamud.dll
View Source
public enum VirtualKey : ushort
Fields
NO_KEY
This is an addendum to use on functions in which you have to pass a zero value to represent no key code.
View Source
NO_KEY = 0
LBUTTON
Left mouse button.
View Source
LBUTTON = 1
RBUTTON
Right mouse button.
View Source
RBUTTON = 2
CANCEL
Control-break processing.
View Source
CANCEL = 3
MBUTTON
Middle mouse button (three-button mouse).
View Source
MBUTTON = 4
XBUTTON1
X1 mouse button.
View Source
XBUTTON1 = 5
XBUTTON2
X2 mouse button.
View Source
XBUTTON2 = 6
BACK
BACKSPACE key.
View Source
BACK = 8
TAB
TAB key.
View Source
TAB = 9
CLEAR
CLEAR key.
View Source
CLEAR = 12
RETURN
RETURN key.
View Source
RETURN = 13
SHIFT
SHIFT key.
View Source
SHIFT = 16
CONTROL
CONTROL key.
View Source
CONTROL = 17
MENU
ALT key.
View Source
MENU = 18
PAUSE
PAUSE key.
View Source
PAUSE = 19
CAPITAL
CAPS LOCK key.
View Source
CAPITAL = 20
KANA
IME Kana mode.
View Source
KANA = 21
HANGEUL
IME Hangeul mode (maintained for compatibility; use User32.VirtualKey.HANGUL).
View Source
HANGEUL = 21
HANGUL
IME Hangul mode.
View Source
HANGUL = 21
JUNJA
IME Junja mode.
View Source
JUNJA = 23
FINAL
IME final mode.
View Source
FINAL = 24
HANJA
IME Hanja mode.
View Source
HANJA = 25
KANJI
IME Kanji mode.
View Source
KANJI = 25
ESCAPE
ESC key.
View Source
ESCAPE = 27
CONVERT
IME convert.
View Source
CONVERT = 28
NONCONVERT
IME nonconvert.
View Source
NONCONVERT = 29
ACCEPT
IME accept.
View Source
ACCEPT = 30
MODECHANGE
IME mode change request.
View Source
MODECHANGE = 31
SPACE
SPACEBAR.
View Source
SPACE = 32
PRIOR
PAGE UP key.
View Source
PRIOR = 33
NEXT
PAGE DOWN key.
View Source
NEXT = 34
END
END key.
View Source
END = 35
HOME
HOME key.
View Source
HOME = 36
LEFT
LEFT ARROW key.
View Source
LEFT = 37
UP
UP ARROW key.
View Source
UP = 38
RIGHT
RIGHT ARROW key.
View Source
RIGHT = 39
DOWN
DOWN ARROW key.
View Source
DOWN = 40
SELECT
SELECT key.
View Source
SELECT = 41
PRINT
PRINT key.
View Source
PRINT = 42
EXECUTE
EXECUTE key.
View Source
EXECUTE = 43
SNAPSHOT
PRINT SCREEN key.
View Source
SNAPSHOT = 44
INSERT
INS key.
View Source
INSERT = 45
DELETE
DEL key.
View Source
DELETE = 46
HELP
HELP key.
View Source
HELP = 47
KEY_0
0 key.
View Source
KEY_0 = 48
KEY_1
1 key.
View Source
KEY_1 = 49
KEY_2
2 key.
View Source
KEY_2 = 50
KEY_3
3 key.
View Source
KEY_3 = 51
KEY_4
4 key.
View Source
KEY_4 = 52
KEY_5
5 key.
View Source
KEY_5 = 53
KEY_6
6 key.
View Source
KEY_6 = 54
KEY_7
7 key.
View Source
KEY_7 = 55
KEY_8
8 key.
View Source
KEY_8 = 56
KEY_9
9 key.
View Source
KEY_9 = 57
A
A key.
View Source
A = 65
B
B key.
View Source
B = 66
C
C key.
View Source
C = 67
D
D key.
View Source
D = 68
E
E key.
View Source
E = 69
F
F key.
View Source
F = 70
G
G key.
View Source
G = 71
H
H key.
View Source
H = 72
I
I key.
View Source
I = 73
J
J key.
View Source
J = 74
K
K key.
View Source
K = 75
L
L key.
View Source
L = 76
M
M key.
View Source
M = 77
N
N key.
View Source
N = 78
O
O key.
View Source
O = 79
P
P key.
View Source
P = 80
Q
Q key.
View Source
Q = 81
R
R key.
View Source
R = 82
S
S key.
View Source
S = 83
T
T key.
View Source
T = 84
U
U key.
View Source
U = 85
V
V key.
View Source
V = 86
W
W key.
View Source
W = 87
X
X key.
View Source
X = 88
Y
Y key.
View Source
Y = 89
Z
Z key.
View Source
Z = 90
LWIN
Left Windows key (Natural keyboard).
View Source
LWIN = 91
RWIN
Right Windows key (Natural keyboard).
View Source
RWIN = 92
APPS
Applications key (Natural keyboard).
View Source
APPS = 93
SLEEP
Computer Sleep key.
View Source
SLEEP = 95
NUMPAD0
Numeric keypad 0 key.
View Source
NUMPAD0 = 96
NUMPAD1
Numeric keypad 1 key.
View Source
NUMPAD1 = 97
NUMPAD2
Numeric keypad 2 key.
View Source
NUMPAD2 = 98
NUMPAD3
Numeric keypad 3 key.
View Source
NUMPAD3 = 99
NUMPAD4
Numeric keypad 4 key.
View Source
NUMPAD4 = 100
NUMPAD5
Numeric keypad 5 key.
View Source
NUMPAD5 = 101
NUMPAD6
Numeric keypad 6 key.
View Source
NUMPAD6 = 102
NUMPAD7
Numeric keypad 7 key.
View Source
NUMPAD7 = 103
NUMPAD8
Numeric keypad 8 key.
View Source
NUMPAD8 = 104
NUMPAD9
Numeric keypad 9 key.
View Source
NUMPAD9 = 105
MULTIPLY
Multiply key.
View Source
MULTIPLY = 106
ADD
Add key.
View Source
ADD = 107
SEPARATOR
Separator key.
View Source
SEPARATOR = 108
SUBTRACT
Subtract key.
View Source
SUBTRACT = 109
DECIMAL
Decimal key.
View Source
DECIMAL = 110
DIVIDE
Divide key.
View Source
DIVIDE = 111
F1
F1 Key.
View Source
F1 = 112
F2
F2 Key.
View Source
F2 = 113
F3
F3 Key.
View Source
F3 = 114
F4
F4 Key.
View Source
F4 = 115
F5
F5 Key.
View Source
F5 = 116
F6
F6 Key.
View Source
F6 = 117
F7
F7 Key.
View Source
F7 = 118
F8
F8 Key.
View Source
F8 = 119
F9
F9 Key.
View Source
F9 = 120
F10
F10 Key.
View Source
F10 = 121
F11
F11 Key.
View Source
F11 = 122
F12
F12 Key.
View Source
F12 = 123
F13
F13 Key.
View Source
F13 = 124
F14
F14 Key.
View Source
F14 = 125
F15
F15 Key.
View Source
F15 = 126
F16
F16 Key.
View Source
F16 = 127
F17
F17 Key.
View Source
F17 = 128
F18
F18 Key.
View Source
F18 = 129
F19
F19 Key.
View Source
F19 = 130
F20
F20 Key.
View Source
F20 = 131
F21
F21 Key.
View Source
F21 = 132
F22
F22 Key.
View Source
F22 = 133
F23
F23 Key.
View Source
F23 = 134
F24
F24 Key.
View Source
F24 = 135
NUMLOCK
NUM LOCK key.
View Source
NUMLOCK = 144
SCROLL
SCROLL LOCK key.
View Source
SCROLL = 145
OEM_NEC_EQUAL
'=' key on numpad (NEC PC-9800 kbd definitions).
View Source
OEM_NEC_EQUAL = 146
OEM_FJ_JISHO
'Dictionary' key (Fujitsu/OASYS kbd definitions).
View Source
OEM_FJ_JISHO = 146
OEM_FJ_MASSHOU
'Unregister word' key (Fujitsu/OASYS kbd definitions).
View Source
OEM_FJ_MASSHOU = 147
OEM_FJ_TOUROKU
'Register word' key (Fujitsu/OASYS kbd definitions).
View Source
OEM_FJ_TOUROKU = 148
OEM_FJ_LOYA
'Left OYAYUBI' key (Fujitsu/OASYS kbd definitions).
View Source
OEM_FJ_LOYA = 149
OEM_FJ_ROYA
'Right OYAYUBI' key (Fujitsu/OASYS kbd definitions).
View Source
OEM_FJ_ROYA = 150
LSHIFT
Left SHIFT key.
View Source
LSHIFT = 160
RSHIFT
Right SHIFT key.
View Source
RSHIFT = 161
LCONTROL
Left CONTROL key.
View Source
LCONTROL = 162
RCONTROL
Right CONTROL key.
View Source
RCONTROL = 163
LMENU
Left MENU key.
View Source
LMENU = 164
RMENU
Right MENU key.
View Source
RMENU = 165
BROWSER_BACK
Browser Back key.
View Source
BROWSER_BACK = 166
BROWSER_FORWARD
Browser Forward key.
View Source
BROWSER_FORWARD = 167
BROWSER_REFRESH
Browser Refresh key.
View Source
BROWSER_REFRESH = 168
BROWSER_STOP
Browser Stop key.
View Source
BROWSER_STOP = 169
BROWSER_SEARCH
Browser Search key.
View Source
BROWSER_SEARCH = 170
BROWSER_FAVORITES
Browser Favorites key.
View Source
BROWSER_FAVORITES = 171
BROWSER_HOME
Browser Start and Home key.
View Source
BROWSER_HOME = 172
VOLUME_MUTE
Volume Mute key.
View Source
VOLUME_MUTE = 173
VOLUME_DOWN
Volume Down key.
View Source
VOLUME_DOWN = 174
VOLUME_UP
Volume Up key.
View Source
VOLUME_UP = 175
MEDIA_NEXT_TRACK
Next Track key.
View Source
MEDIA_NEXT_TRACK = 176
MEDIA_PREV_TRACK
Previous Track key.
View Source
MEDIA_PREV_TRACK = 177
MEDIA_STOP
Stop Media key.
View Source
MEDIA_STOP = 178
MEDIA_PLAY_PAUSE
Play/Pause Media key.
View Source
MEDIA_PLAY_PAUSE = 179
LAUNCH_MAIL
Start Mail key.
View Source
LAUNCH_MAIL = 180
LAUNCH_MEDIA_SELECT
Select Media key.
View Source
LAUNCH_MEDIA_SELECT = 181
LAUNCH_APP1
Start Application 1 key.
View Source
LAUNCH_APP1 = 182
LAUNCH_APP2
Start Application 2 key.
View Source
LAUNCH_APP2 = 183
OEM_1
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_1 = 186
OEM_PLUS
For any country/region, the '+' key.
View Source
OEM_PLUS = 187
OEM_COMMA
For any country/region, the ',' key.
View Source
OEM_COMMA = 188
OEM_MINUS
For any country/region, the '-' key.
View Source
OEM_MINUS = 189
OEM_PERIOD
For any country/region, the '.' key.
View Source
OEM_PERIOD = 190
OEM_2
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_2 = 191
OEM_3
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_3 = 192
OEM_4
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_4 = 219
OEM_5
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_5 = 220
OEM_6
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_6 = 221
OEM_7
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_7 = 222
OEM_8
Used for miscellaneous characters; it can vary by keyboard..
View Source
OEM_8 = 223
OEM_AX
OEM specific.
View Source
OEM_AX = 225
OEM_102
Either the angle bracket ("<>") key or the backslash ("|") key on the RT 102-key keyboard.
View Source
OEM_102 = 226
ICO_HELP
OEM specific.
View Source
ICO_HELP = 227
ICO_00
OEM specific.
View Source
ICO_00 = 228
PROCESSKEY
IME PROCESS key.
View Source
PROCESSKEY = 229
ICO_CLEAR
OEM specific.
View Source
ICO_CLEAR = 230
PACKET
Used to pass Unicode characters as if they were keystrokes. The PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods..
View Source
PACKET = 231
OEM_RESET
Nokia/Ericsson definition.
View Source
OEM_RESET = 233
OEM_JUMP
Nokia/Ericsson definition.
View Source
OEM_JUMP = 234
OEM_PA1
Nokia/Ericsson definition.
View Source
OEM_PA1 = 235
OEM_PA2
Nokia/Ericsson definition.
View Source
OEM_PA2 = 236
OEM_PA3
Nokia/Ericsson definition.
View Source
OEM_PA3 = 237
OEM_WSCTRL
Nokia/Ericsson definition.
View Source
OEM_WSCTRL = 238
OEM_CUSEL
Nokia/Ericsson definition.
View Source
OEM_CUSEL = 239
OEM_ATTN
Nokia/Ericsson definition.
View Source
OEM_ATTN = 240
OEM_FINISH
Nokia/Ericsson definition.
View Source
OEM_FINISH = 241
OEM_COPY
Nokia/Ericsson definition.
View Source
OEM_COPY = 242
OEM_AUTO
Nokia/Ericsson definition.
View Source
OEM_AUTO = 243
OEM_ENLW
Nokia/Ericsson definition.
View Source
OEM_ENLW = 244
OEM_BACKTAB
Nokia/Ericsson definition.
View Source
OEM_BACKTAB = 245
ATTN
Attn key.
View Source
ATTN = 246
CRSEL
CrSel key.
View Source
CRSEL = 247
EXSEL
ExSel key.
View Source
EXSEL = 248
EREOF
Erase EOF key.
View Source
EREOF = 249
PLAY
Play key.
View Source
PLAY = 250
ZOOM
Zoom key.
View Source
ZOOM = 251
NONAME
Reserved constant by Windows headers definition.
View Source
NONAME = 252
PA1
PA1 key.
View Source
PA1 = 253
OEM_CLEAR
Clear key.
View Source
OEM_CLEAR = 254
Extension Methods
- Dalamud.Game.ClientState.Keys.VirtualKeyExtensions.GetFancyName(Dalamud.Game.ClientState.Keys.VirtualKey)
- System.Enum.Dalamud.Utility.EnumExtensions.GetAttribute``1
- System.Enum.Dalamud.Utility.EnumExtensions.GetAttributes``1
- Dalamud.Utility.EnumExtensions.IsObsolete(System.Enum)