Show / Hide Table of Contents

# Enum VirtualKey

Virtual-key codes.

###### Namespace: Dalamud.Game.ClientState.Keys

###### Assembly: Dalamud.dll

##### Syntax

    public enum VirtualKey : ushort

##### Remarks

Defined in winuser.h from Windows SDK v6.1.

### Fields

Name | Description
--- | ---
A | A key.
ACCEPT | IME accept.
ADD | Add key.
APPS | Applications key (Natural keyboard).
ATTN | Attn key.
B | B key.
BACK | BACKSPACE key.
BROWSER_BACK | Browser Back key.
BROWSER_FAVORITES | Browser Favorites key.
BROWSER_FORWARD | Browser Forward key.
BROWSER_HOME | Browser Start and Home key.
BROWSER_REFRESH | Browser Refresh key.
BROWSER_SEARCH | Browser Search key.
BROWSER_STOP | Browser Stop key.
C | C key.
CANCEL | Control-break processing.
CAPITAL | CAPS LOCK key.
CLEAR | CLEAR key.
CONTROL | CONTROL key.
CONVERT | IME convert.
CRSEL | CrSel key.
D | D key.
DECIMAL | Decimal key.
DELETE | DEL key.
DIVIDE | Divide key.
DOWN | DOWN ARROW key.
E | E key.
END | END key.
EREOF | Erase EOF key.
ESCAPE | ESC key.
EXECUTE | EXECUTE key.
EXSEL | ExSel key.
F | F key.
F1 | F1 Key.
F10 | F10 Key.
F11 | F11 Key.
F12 | F12 Key.
F13 | F13 Key.
F14 | F14 Key.
F15 | F15 Key.
F16 | F16 Key.
F17 | F17 Key.
F18 | F18 Key.
F19 | F19 Key.
F2 | F2 Key.
F20 | F20 Key.
F21 | F21 Key.
F22 | F22 Key.
F23 | F23 Key.
F24 | F24 Key.
F3 | F3 Key.
F4 | F4 Key.
F5 | F5 Key.
F6 | F6 Key.
F7 | F7 Key.
F8 | F8 Key.
F9 | F9 Key.
FINAL | IME final mode.
G | G key.
H | H key.
HANGEUL | IME Hangeul mode (maintained for compatibility; use User32.VirtualKey.HANGUL).
HANGUL | IME Hangul mode.
HANJA | IME Hanja mode.
HELP | HELP key.
HOME | HOME key.
I | I key.
ICO_00 | OEM specific.
ICO_CLEAR | OEM specific.
ICO_HELP | OEM specific.
INSERT | INS key.
J | J key.
JUNJA | IME Junja mode.
K | K key.
KANA | IME Kana mode.
KANJI | IME Kanji mode.
KEY_0 | 0 key.
KEY_1 | 1 key.
KEY_2 | 2 key.
KEY_3 | 3 key.
KEY_4 | 4 key.
KEY_5 | 5 key.
KEY_6 | 6 key.
KEY_7 | 7 key.
KEY_8 | 8 key.
KEY_9 | 9 key.
L | L key.
LAUNCH_APP1 | Start Application 1 key.
LAUNCH_APP2 | Start Application 2 key.
LAUNCH_MAIL | Start Mail key.
LAUNCH_MEDIA_SELECT | Select Media key.
LBUTTON | Left mouse button.
LCONTROL | Left CONTROL key.
LEFT | LEFT ARROW key.
LMENU | Left MENU key.
LSHIFT | Left SHIFT key.
LWIN | Left Windows key (Natural keyboard).
M | M key.
MBUTTON | Middle mouse button (three-button mouse).
MEDIA_NEXT_TRACK | Next Track key.
MEDIA_PLAY_PAUSE | Play/Pause Media key.
MEDIA_PREV_TRACK | Previous Track key.
MEDIA_STOP | Stop Media key.
ALT key.
MODECHANGE | IME mode change request.
MULTIPLY | Multiply key.
N | N key.
NEXT | PAGE DOWN key.
NO_KEY | This is an addendum to use on functions in which you have to pass a zero value to represent no key code.
NONAME | Reserved constant by Windows headers definition.
NONCONVERT | IME nonconvert.
NUMLOCK | NUM LOCK key.
NUMPAD0 | Numeric keypad 0 key.
NUMPAD1 | Numeric keypad 1 key.
NUMPAD2 | Numeric keypad 2 key.
NUMPAD3 | Numeric keypad 3 key.
NUMPAD4 | Numeric keypad 4 key.
NUMPAD5 | Numeric keypad 5 key.
NUMPAD6 | Numeric keypad 6 key.
NUMPAD7 | Numeric keypad 7 key.
NUMPAD8 | Numeric keypad 8 key.
NUMPAD9 | Numeric keypad 9 key.
O | O key.
OEM_1 | Used for miscellaneous characters; it can vary by keyboard..
OEM_102 | Either the angle bracket ("<>") key or the backslash ("|") key on the RT 102-key keyboard.
OEM_2 | Used for miscellaneous characters; it can vary by keyboard..
OEM_3 | Used for miscellaneous characters; it can vary by keyboard..
OEM_4 | Used for miscellaneous characters; it can vary by keyboard..
OEM_5 | Used for miscellaneous characters; it can vary by keyboard..
OEM_6 | Used for miscellaneous characters; it can vary by keyboard..
OEM_7 | Used for miscellaneous characters; it can vary by keyboard..
OEM_8 | Used for miscellaneous characters; it can vary by keyboard..
OEM_ATTN | Nokia/Ericsson definition.
OEM_AUTO | Nokia/Ericsson definition.
OEM_AX | OEM specific.
OEM_BACKTAB | Nokia/Ericsson definition.
OEM_CLEAR | Clear key.
OEM_COMMA | For any country/region, the ',' key.
OEM_COPY | Nokia/Ericsson definition.
OEM_CUSEL | Nokia/Ericsson definition.
OEM_ENLW | Nokia/Ericsson definition.
OEM_FINISH | Nokia/Ericsson definition.
OEM_FJ_JISHO | 'Dictionary' key (Fujitsu/OASYS kbd definitions).
OEM_FJ_LOYA | 'Left OYAYUBI' key (Fujitsu/OASYS kbd definitions).
OEM_FJ_MASSHOU | 'Unregister word' key (Fujitsu/OASYS kbd definitions).
OEM_FJ_ROYA | 'Right OYAYUBI' key (Fujitsu/OASYS kbd definitions).
OEM_FJ_TOUROKU | 'Register word' key (Fujitsu/OASYS kbd definitions).
OEM_JUMP | Nokia/Ericsson definition.
OEM_MINUS | For any country/region, the '-' key.
OEM_NEC_EQUAL | '=' key on numpad (NEC PC-9800 kbd definitions).
OEM_PA1 | Nokia/Ericsson definition.
OEM_PA2 | Nokia/Ericsson definition.
OEM_PA3 | Nokia/Ericsson definition.
OEM_PERIOD | For any country/region, the '.' key.
OEM_PLUS | For any country/region, the '+' key.
OEM_RESET | Nokia/Ericsson definition.
OEM_WSCTRL | Nokia/Ericsson definition.
P | P key.
PA1 | PA1 key.
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..
PAUSE | PAUSE key.
PLAY | Play key.
PRINT | PRINT key.
PRIOR | PAGE UP key.
PROCESSKEY | IME PROCESS key.
Q | Q key.
R | R key.
RBUTTON | Right mouse button.
RCONTROL | Right CONTROL key.
RETURN | RETURN key.
RIGHT | RIGHT ARROW key.
RMENU | Right MENU key.
RSHIFT | Right SHIFT key.
RWIN | Right Windows key (Natural keyboard).
S | S key.
SCROLL | SCROLL LOCK key.
SELECT | SELECT key.
SEPARATOR | Separator key.
SHIFT | SHIFT key.
SLEEP | Computer Sleep key.
SNAPSHOT | PRINT SCREEN key.
SPACE | SPACEBAR.
SUBTRACT | Subtract key.
T | T key.
TAB | TAB key.
U | U key.
UP | UP ARROW key.
V | V key.
VOLUME_DOWN | Volume Down key.
VOLUME_MUTE | Volume Mute key.
VOLUME_UP | Volume Up key.
W | W key.
X | X key.
XBUTTON1 | X1 mouse button.
XBUTTON2 | X2 mouse button.
Y | Y key.
Z | Z key.
ZOOM | Zoom key.

### Extension Methods

EnumExtensions.GetAttribute<TAttribute>()
VirtualKeyExtensions.GetFancyName()