Skip to main content

Enum VirtualKey

Virtual-key codes.

Assembly: Dalamud.dll
View Source
Declaration
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
Declaration
NO_KEY = 0

LBUTTON

Left mouse button.

View Source
Declaration
LBUTTON = 1

RBUTTON

Right mouse button.

View Source
Declaration
RBUTTON = 2

CANCEL

Control-break processing.

View Source
Declaration
CANCEL = 3

MBUTTON

Middle mouse button (three-button mouse).

View Source
Declaration
MBUTTON = 4

XBUTTON1

X1 mouse button.

View Source
Declaration
XBUTTON1 = 5

XBUTTON2

X2 mouse button.

View Source
Declaration
XBUTTON2 = 6

BACK

BACKSPACE key.

View Source
Declaration
BACK = 8

TAB

TAB key.

View Source
Declaration
TAB = 9

CLEAR

CLEAR key.

View Source
Declaration
CLEAR = 12

RETURN

RETURN key.

View Source
Declaration
RETURN = 13

SHIFT

SHIFT key.

View Source
Declaration
SHIFT = 16

CONTROL

CONTROL key.

View Source
Declaration
CONTROL = 17

ALT key.

View Source
Declaration
MENU = 18

PAUSE

PAUSE key.

View Source
Declaration
PAUSE = 19

CAPITAL

CAPS LOCK key.

View Source
Declaration
CAPITAL = 20

KANA

IME Kana mode.

View Source
Declaration
KANA = 21

HANGEUL

IME Hangeul mode (maintained for compatibility; use User32.VirtualKey.HANGUL).

View Source
Declaration
HANGEUL = 21

HANGUL

IME Hangul mode.

View Source
Declaration
HANGUL = 21

JUNJA

IME Junja mode.

View Source
Declaration
JUNJA = 23

FINAL

IME final mode.

View Source
Declaration
FINAL = 24

HANJA

IME Hanja mode.

View Source
Declaration
HANJA = 25

KANJI

IME Kanji mode.

View Source
Declaration
KANJI = 25

ESCAPE

ESC key.

View Source
Declaration
ESCAPE = 27

CONVERT

IME convert.

View Source
Declaration
CONVERT = 28

NONCONVERT

IME nonconvert.

View Source
Declaration
NONCONVERT = 29

ACCEPT

IME accept.

View Source
Declaration
ACCEPT = 30

MODECHANGE

IME mode change request.

View Source
Declaration
MODECHANGE = 31

SPACE

SPACEBAR.

View Source
Declaration
SPACE = 32

PRIOR

PAGE UP key.

View Source
Declaration
PRIOR = 33

NEXT

PAGE DOWN key.

View Source
Declaration
NEXT = 34

END

END key.

View Source
Declaration
END = 35

HOME

HOME key.

View Source
Declaration
HOME = 36

LEFT

LEFT ARROW key.

View Source
Declaration
LEFT = 37

UP

UP ARROW key.

View Source
Declaration
UP = 38

RIGHT ARROW key.

View Source
Declaration
RIGHT = 39

DOWN

DOWN ARROW key.

View Source
Declaration
DOWN = 40

SELECT

SELECT key.

View Source
Declaration
SELECT = 41

PRINT

PRINT key.

View Source
Declaration
PRINT = 42

EXECUTE

EXECUTE key.

View Source
Declaration
EXECUTE = 43

SNAPSHOT

PRINT SCREEN key.

View Source
Declaration
SNAPSHOT = 44

INSERT

INS key.

View Source
Declaration
INSERT = 45

DELETE

DEL key.

View Source
Declaration
DELETE = 46

HELP

HELP key.

View Source
Declaration
HELP = 47

KEY_0

0 key.

View Source
Declaration
KEY_0 = 48

KEY_1

1 key.

View Source
Declaration
KEY_1 = 49

KEY_2

2 key.

View Source
Declaration
KEY_2 = 50

KEY_3

3 key.

View Source
Declaration
KEY_3 = 51

KEY_4

4 key.

View Source
Declaration
KEY_4 = 52

KEY_5

5 key.

View Source
Declaration
KEY_5 = 53

KEY_6

6 key.

View Source
Declaration
KEY_6 = 54

KEY_7

7 key.

View Source
Declaration
KEY_7 = 55

KEY_8

8 key.

View Source
Declaration
KEY_8 = 56

KEY_9

9 key.

View Source
Declaration
KEY_9 = 57

A

A key.

View Source
Declaration
A = 65

B

B key.

View Source
Declaration
B = 66

C

C key.

View Source
Declaration
C = 67

D

D key.

View Source
Declaration
D = 68

E

E key.

View Source
Declaration
E = 69

F

F key.

View Source
Declaration
F = 70

G

G key.

View Source
Declaration
G = 71

H

H key.

View Source
Declaration
H = 72

I

I key.

View Source
Declaration
I = 73

J

J key.

View Source
Declaration
J = 74

K

K key.

View Source
Declaration
K = 75

L

L key.

View Source
Declaration
L = 76

M

M key.

View Source
Declaration
M = 77

N

N key.

View Source
Declaration
N = 78

O

O key.

View Source
Declaration
O = 79

P

P key.

View Source
Declaration
P = 80

Q

Q key.

View Source
Declaration
Q = 81

R

R key.

View Source
Declaration
R = 82

S

S key.

View Source
Declaration
S = 83

T

T key.

View Source
Declaration
T = 84

U

U key.

View Source
Declaration
U = 85

V

V key.

View Source
Declaration
V = 86

W

W key.

View Source
Declaration
W = 87

X

X key.

View Source
Declaration
X = 88

Y

Y key.

View Source
Declaration
Y = 89

Z

Z key.

View Source
Declaration
Z = 90

LWIN

Left Windows key (Natural keyboard).

View Source
Declaration
LWIN = 91

RWIN

Right Windows key (Natural keyboard).

View Source
Declaration
RWIN = 92

APPS

Applications key (Natural keyboard).

View Source
Declaration
APPS = 93

SLEEP

Computer Sleep key.

View Source
Declaration
SLEEP = 95

NUMPAD0

Numeric keypad 0 key.

View Source
Declaration
NUMPAD0 = 96

NUMPAD1

Numeric keypad 1 key.

View Source
Declaration
NUMPAD1 = 97

NUMPAD2

Numeric keypad 2 key.

View Source
Declaration
NUMPAD2 = 98

NUMPAD3

Numeric keypad 3 key.

View Source
Declaration
NUMPAD3 = 99

NUMPAD4

Numeric keypad 4 key.

View Source
Declaration
NUMPAD4 = 100

NUMPAD5

Numeric keypad 5 key.

View Source
Declaration
NUMPAD5 = 101

NUMPAD6

Numeric keypad 6 key.

View Source
Declaration
NUMPAD6 = 102

NUMPAD7

Numeric keypad 7 key.

View Source
Declaration
NUMPAD7 = 103

NUMPAD8

Numeric keypad 8 key.

View Source
Declaration
NUMPAD8 = 104

NUMPAD9

Numeric keypad 9 key.

View Source
Declaration
NUMPAD9 = 105

MULTIPLY

Multiply key.

View Source
Declaration
MULTIPLY = 106

ADD

Add key.

View Source
Declaration
ADD = 107

SEPARATOR

Separator key.

View Source
Declaration
SEPARATOR = 108

SUBTRACT

Subtract key.

View Source
Declaration
SUBTRACT = 109

DECIMAL

Decimal key.

View Source
Declaration
DECIMAL = 110

DIVIDE

Divide key.

View Source
Declaration
DIVIDE = 111

F1

F1 Key.

View Source
Declaration
F1 = 112

F2

F2 Key.

View Source
Declaration
F2 = 113

F3

F3 Key.

View Source
Declaration
F3 = 114

F4

F4 Key.

View Source
Declaration
F4 = 115

F5

F5 Key.

View Source
Declaration
F5 = 116

F6

F6 Key.

View Source
Declaration
F6 = 117

F7

F7 Key.

View Source
Declaration
F7 = 118

F8

F8 Key.

View Source
Declaration
F8 = 119

F9

F9 Key.

View Source
Declaration
F9 = 120

F10

F10 Key.

View Source
Declaration
F10 = 121

F11

F11 Key.

View Source
Declaration
F11 = 122

F12

F12 Key.

View Source
Declaration
F12 = 123

F13

F13 Key.

View Source
Declaration
F13 = 124

F14

F14 Key.

View Source
Declaration
F14 = 125

F15

F15 Key.

View Source
Declaration
F15 = 126

F16

F16 Key.

View Source
Declaration
F16 = 127

F17

F17 Key.

View Source
Declaration
F17 = 128

F18

F18 Key.

View Source
Declaration
F18 = 129

F19

F19 Key.

View Source
Declaration
F19 = 130

F20

F20 Key.

View Source
Declaration
F20 = 131

F21

F21 Key.

View Source
Declaration
F21 = 132

F22

F22 Key.

View Source
Declaration
F22 = 133

F23

F23 Key.

View Source
Declaration
F23 = 134

F24

F24 Key.

View Source
Declaration
F24 = 135

NUMLOCK

NUM LOCK key.

View Source
Declaration
NUMLOCK = 144

SCROLL

SCROLL LOCK key.

View Source
Declaration
SCROLL = 145

OEM_NEC_EQUAL

'=' key on numpad (NEC PC-9800 kbd definitions).

View Source
Declaration
OEM_NEC_EQUAL = 146

OEM_FJ_JISHO

'Dictionary' key (Fujitsu/OASYS kbd definitions).

View Source
Declaration
OEM_FJ_JISHO = 146

OEM_FJ_MASSHOU

'Unregister word' key (Fujitsu/OASYS kbd definitions).

View Source
Declaration
OEM_FJ_MASSHOU = 147

OEM_FJ_TOUROKU

'Register word' key (Fujitsu/OASYS kbd definitions).

View Source
Declaration
OEM_FJ_TOUROKU = 148

OEM_FJ_LOYA

'Left OYAYUBI' key (Fujitsu/OASYS kbd definitions).

View Source
Declaration
OEM_FJ_LOYA = 149

OEM_FJ_ROYA

'Right OYAYUBI' key (Fujitsu/OASYS kbd definitions).

View Source
Declaration
OEM_FJ_ROYA = 150

LSHIFT

Left SHIFT key.

View Source
Declaration
LSHIFT = 160

RSHIFT

Right SHIFT key.

View Source
Declaration
RSHIFT = 161

LCONTROL

Left CONTROL key.

View Source
Declaration
LCONTROL = 162

RCONTROL

Right CONTROL key.

View Source
Declaration
RCONTROL = 163

Left MENU key.

View Source
Declaration
LMENU = 164

RMENU

Right MENU key.

View Source
Declaration
RMENU = 165

BROWSER_BACK

Browser Back key.

View Source
Declaration
BROWSER_BACK = 166

BROWSER_FORWARD

Browser Forward key.

View Source
Declaration
BROWSER_FORWARD = 167

BROWSER_REFRESH

Browser Refresh key.

View Source
Declaration
BROWSER_REFRESH = 168

BROWSER_STOP

Browser Stop key.

View Source
Declaration
BROWSER_STOP = 169

Browser Search key.

View Source
Declaration
BROWSER_SEARCH = 170

BROWSER_FAVORITES

Browser Favorites key.

View Source
Declaration
BROWSER_FAVORITES = 171

BROWSER_HOME

Browser Start and Home key.

View Source
Declaration
BROWSER_HOME = 172

VOLUME_MUTE

Volume Mute key.

View Source
Declaration
VOLUME_MUTE = 173

VOLUME_DOWN

Volume Down key.

View Source
Declaration
VOLUME_DOWN = 174

VOLUME_UP

Volume Up key.

View Source
Declaration
VOLUME_UP = 175

MEDIA_NEXT_TRACK

Next Track key.

View Source
Declaration
MEDIA_NEXT_TRACK = 176

MEDIA_PREV_TRACK

Previous Track key.

View Source
Declaration
MEDIA_PREV_TRACK = 177

MEDIA_STOP

Stop Media key.

View Source
Declaration
MEDIA_STOP = 178

MEDIA_PLAY_PAUSE

Play/Pause Media key.

View Source
Declaration
MEDIA_PLAY_PAUSE = 179

LAUNCH_MAIL

Start Mail key.

View Source
Declaration
LAUNCH_MAIL = 180

LAUNCH_MEDIA_SELECT

Select Media key.

View Source
Declaration
LAUNCH_MEDIA_SELECT = 181

LAUNCH_APP1

Start Application 1 key.

View Source
Declaration
LAUNCH_APP1 = 182

LAUNCH_APP2

Start Application 2 key.

View Source
Declaration
LAUNCH_APP2 = 183

OEM_1

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_1 = 186

OEM_PLUS

For any country/region, the '+' key.

View Source
Declaration
OEM_PLUS = 187

OEM_COMMA

For any country/region, the ',' key.

View Source
Declaration
OEM_COMMA = 188

OEM_MINUS

For any country/region, the '-' key.

View Source
Declaration
OEM_MINUS = 189

OEM_PERIOD

For any country/region, the '.' key.

View Source
Declaration
OEM_PERIOD = 190

OEM_2

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_2 = 191

OEM_3

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_3 = 192

OEM_4

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_4 = 219

OEM_5

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_5 = 220

OEM_6

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_6 = 221

OEM_7

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_7 = 222

OEM_8

Used for miscellaneous characters; it can vary by keyboard..

View Source
Declaration
OEM_8 = 223

OEM_AX

OEM specific.

View Source
Declaration
OEM_AX = 225

OEM_102

Either the angle bracket ("<>") key or the backslash ("|") key on the RT 102-key keyboard.

View Source
Declaration
OEM_102 = 226

ICO_HELP

OEM specific.

View Source
Declaration
ICO_HELP = 227

ICO_00

OEM specific.

View Source
Declaration
ICO_00 = 228

PROCESSKEY

IME PROCESS key.

View Source
Declaration
PROCESSKEY = 229

ICO_CLEAR

OEM specific.

View Source
Declaration
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
Declaration
PACKET = 231

OEM_RESET

Nokia/Ericsson definition.

View Source
Declaration
OEM_RESET = 233

OEM_JUMP

Nokia/Ericsson definition.

View Source
Declaration
OEM_JUMP = 234

OEM_PA1

Nokia/Ericsson definition.

View Source
Declaration
OEM_PA1 = 235

OEM_PA2

Nokia/Ericsson definition.

View Source
Declaration
OEM_PA2 = 236

OEM_PA3

Nokia/Ericsson definition.

View Source
Declaration
OEM_PA3 = 237

OEM_WSCTRL

Nokia/Ericsson definition.

View Source
Declaration
OEM_WSCTRL = 238

OEM_CUSEL

Nokia/Ericsson definition.

View Source
Declaration
OEM_CUSEL = 239

OEM_ATTN

Nokia/Ericsson definition.

View Source
Declaration
OEM_ATTN = 240

OEM_FINISH

Nokia/Ericsson definition.

View Source
Declaration
OEM_FINISH = 241

OEM_COPY

Nokia/Ericsson definition.

View Source
Declaration
OEM_COPY = 242

OEM_AUTO

Nokia/Ericsson definition.

View Source
Declaration
OEM_AUTO = 243

OEM_ENLW

Nokia/Ericsson definition.

View Source
Declaration
OEM_ENLW = 244

OEM_BACKTAB

Nokia/Ericsson definition.

View Source
Declaration
OEM_BACKTAB = 245

ATTN

Attn key.

View Source
Declaration
ATTN = 246

CRSEL

CrSel key.

View Source
Declaration
CRSEL = 247

EXSEL

ExSel key.

View Source
Declaration
EXSEL = 248

EREOF

Erase EOF key.

View Source
Declaration
EREOF = 249

PLAY

Play key.

View Source
Declaration
PLAY = 250

ZOOM

Zoom key.

View Source
Declaration
ZOOM = 251

NONAME

Reserved constant by Windows headers definition.

View Source
Declaration
NONAME = 252

PA1

PA1 key.

View Source
Declaration
PA1 = 253

OEM_CLEAR

Clear key.

View Source
Declaration
OEM_CLEAR = 254

Extension Methods