Skip to content

Latest commit

 

History

History
729 lines (367 loc) · 12.3 KB

virtualkey.md

File metadata and controls

729 lines (367 loc) · 12.3 KB
-api-id -api-type
T:Windows.System.VirtualKey
winrt enum

VirtualKey

-description

Specifies the values for each virtual key.

-enum-fields

The keys listed below are virtual, which means that they are not the physical keys or buttons on an attached keyboard or device (such as a remote control or xbox controller), but an abstract mapping of those keys that may be connected to hardware that provides either those keys and buttons or an interface that simulates their physical behavior (such as an onscreen touch keyboard).

-field None:0

No virtual key value.

-field LeftButton:1

The left mouse button.

-field RightButton:2

The right mouse button.

-field Cancel:3

The cancel key or button.

-field MiddleButton:4

The middle mouse button.

-field XButton1:5

An additional "extended" device key or button (for example, an additional mouse button).

-field XButton2:6

An additional "extended" device key or button (for example, an additional mouse button).

-field Back:8

The back key or button.

-field Tab:9

The Tab key or button.

-field Clear:12

The Clear key or button.

-field Enter:13

The Enter key or button.

-field Shift:16

The Shift key or button. This is the general Shift case, applicable to key layouts with only one Shift key or that do not need to differentiate between left Shift and right Shift keystrokes.

-field Control:17

The Ctrl key or button. This is the general Ctrl case, applicable to key layouts with only one Ctrl key or that do not need to differentiate between left Ctrl and right Ctrl keystrokes.

-field Menu:18

The Alt key or button. This is the general Alt case, applicable to key layouts with only one Alt key or that do not need to differentiate between left Alt and right Alt keystrokes.

-field Pause:19

The Pause key or button.

-field CapitalLock:20

The Caps Lock key or button.

-field Kana:21

The Kana symbol option key or button.

Kana are the syllabaries that form parts of the Japanese writing system.

-field Hangul:21

The Hangul symbol option key or button.

Hangul are the syllabaries that form parts of the Korean writing system.

-field Junja:23

The Junja symbol option key or button.

Junja are the syllabaries that form parts of the Korean writing system.

-field Final:24

The Final symbol key or button.

-field Hanja:25

The Hanja symbol option key or button.

Hanja are the syllabaries that form parts of the Korean writing system.

-field Kanji:25

The Kanji symbol option key or button.

Kanji are the syllabaries that form parts of the Japanese writing system.

-field Escape:27

The Esc key or button.

-field Convert:28

The IME convert button.

-field NonConvert:29

The IME nonconvert button.

-field Accept:30

The IME accept button.

-field ModeChange:31

The IME mode change button.

-field Space:32

The Spacebar key or button.

-field PageUp:33

The Page Up key or button.

-field PageDown:34

The Page Down key or button.

-field End:35

The End key or button.

-field Home:36

The Home key or button.

-field Left:37

The Left Arrow key or button.

-field Up:38

The Up Arrow key or button.

-field Right:39

The Right Arrow key or button.

-field Down:40

The Down Arrow key or button.

-field Select:41

The Select key or button.

-field Print:42

The Print key or button.

-field Execute:43

The execute key or button.

-field Snapshot:44

The Print Screen key or button.

-field Insert:45

The Insert key or button.

-field Delete:46

The Delete key or button.

-field Help:47

The Help key or button.

-field Number0:48

The number "0" key or button.

-field Number1:49

The number "1" key or button.

-field Number2:50

The number "2" key or button.

-field Number3:51

The number "3" key or button.

-field Number4:52

The number "4" key or button.

-field Number5:53

The number "5" key or button.

-field Number6:54

The number "6" key or button.

-field Number7:55

The number "7" key or button.

-field Number8:56

The number "8" key or button.

-field Number9:57

The number "9" key or button.

-field A:65

The letter "A" key or button.

-field B:66

The letter "B" key or button.

-field C:67

The letter "C" key or button.

-field D:68

The letter "D" key or button.

-field E:69

The letter "E" key or button.

-field F:70

The letter "F" key or button.

-field G:71

The letter "G" key or button.

-field H:72

The letter "H" key or button.

-field I:73

The letter "I" key or button.

-field J:74

The letter "J" key or button.

-field K:75

The letter "K" key or button.

-field L:76

The letter "L" key or button.

-field M:77

The letter "M" key or button.

-field N:78

The letter "N" key or button.

-field O:79

The letter "O" key or button.

-field P:80

The letter "P" key or button.

-field Q:81

The letter "Q" key or button.

-field R:82

The letter "R" key or button.

-field S:83

The letter "S" key or button.

-field T:84

The letter "T" key or button.

-field U:85

The letter "U" key or button.

-field V:86

The letter "V" key or button.

-field W:87

The letter "W" key or button.

-field X:88

The letter "X" key or button.

-field Y:89

The letter "Y" key or button.

-field Z:90

The letter "Z" key or button.

-field LeftWindows:91

The left Windows key or button.

-field RightWindows:92

The right Windows key or button.

-field Application:93

The application key or button.

-field Sleep:95

The sleep key or button.

-field ImeOff

The Input Method Editor Off key or button.

-field NumberPad0:96

The number "0" key or button as located on a numeric pad.

-field ImeOn

The Input Method Editor On key or button.

-field NumberPad1:97

The number "1" key or button as located on a numeric pad.

-field NumberPad2:98

The number "2" key or button as located on a numeric pad.

-field NumberPad3:99

The number "3" key or button as located on a numeric pad.

-field NumberPad4:100

The number "4" key or button as located on a numeric pad.

-field NumberPad5:101

The number "5" key or button as located on a numeric pad.

-field NumberPad6:102

The number "6" key or button as located on a numeric pad.

-field NumberPad7:103

The number "7" key or button as located on a numeric pad.

-field NumberPad8:104

The number "8" key or button as located on a numeric pad.

-field NumberPad9:105

The number "9" key or button as located on a numeric pad.

-field Multiply:106

The multiply (*) operation key or button as located on a numeric pad.

-field Add:107

The add (+) operation key or button as located on a numeric pad.

-field Separator:108

The separator key or button as located on a numeric pad.

-field Subtract:109

The subtract (-) operation key or button as located on a numeric pad.

-field Decimal:110

The decimal (.) key or button as located on a numeric pad.

-field Divide:111

The divide (/) operation key or button as located on a numeric pad.

-field F1:112

The F1 function key or button.

-field F2:113

The F2 function key or button.

-field F3:114

The F3 function key or button.

-field F4:115

The F4 function key or button.

-field F5:116

The F5 function key or button.

-field F6:117

The F6 function key or button.

-field F7:118

The F7 function key or button.

-field F8:119

The F8 function key or button.

-field F9:120

The F9 function key or button.

-field F10:121

The F10 function key or button.

-field F11:122

The F11 function key or button.

-field F12:123

The F12 function key or button.

-field F13:124

The F13 function key or button.

-field F14:125

The F14 function key or button.

-field F15:126

The F15 function key or button.

-field F16:127

The F16 function key or button.

-field F17:128

The F17 function key or button.

-field F18:129

The F18 function key or button.

-field F19:130

The F19 function key or button.

-field F20:131

The F20 function key or button.

-field F21:132

The F21 function key or button.

-field F22:133

The F22 function key or button.

-field F23:134

The F23 function key or button.

-field F24:135

The F24 function key or button.

-field NavigationView:136

The navigation up key or button.

-field NavigationMenu:137

The navigation menu key or button.

-field NavigationUp:138

The navigation up key or button.

-field NavigationDown:139

The navigation down key or button.

-field NavigationLeft:140

The navigation left key or button.

-field NavigationRight:141

The navigation right key or button.

-field NavigationAccept:142

The navigation accept key or button.

-field NavigationCancel:143

The navigation cancel key or button.

-field NumberKeyLock:144

The Num Lock key or button.

-field Scroll:145

The Scroll Lock (ScrLk) key or button.

-field LeftShift:160

The left Shift key or button.

-field RightShift:161

The right Shift key or button.

-field LeftControl:162

The left Ctrl key or button.

-field RightControl:163

The right Ctrl key or button.

-field LeftMenu:164

The left Alt key or button.

-field RightMenu:165

The right Alt key or button.

-field GoBack:166

The go back key or button.

-field GoForward:167

The go forward key or button.

-field Refresh:168

The refresh key or button.

-field Stop:169

The stop key or button.

-field Search:170

The search key or button.

-field Favorites:171

The favorites key or button.

-field GoHome:172

The go home key or button.

-field GamepadA:195

The gamepad A button.

-field GamepadB:196

The gamepad B button.

-field GamepadX:197

The gamepad X button.

-field GamepadY:198

The gamepad Y button.

-field GamepadRightShoulder:199

The gamepad right shoulder.

-field GamepadLeftShoulder:200

The gamepad left shoulder.

-field GamepadLeftTrigger:201

The gamepad left trigger.

-field GamepadRightTrigger:202

The gamepad right trigger.

-field GamepadDPadUp:203

The gamepad d-pad up.

-field GamepadDPadDown:204

The gamepad d-pad down.

-field GamepadDPadLeft:205

The gamepad d-pad left.

-field GamepadDPadRight:206

The gamepad d-pad right.

-field GamepadMenu:207

The gamepad menu button.

-field GamepadView:208

The gamepad view button.

-field GamepadLeftThumbstickButton:209

The gamepad left thumbstick button.

-field GamepadRightThumbstickButton:210

The gamepad right thumbstick button.

-field GamepadLeftThumbstickUp:211

The gamepad left thumbstick up.

-field GamepadLeftThumbstickDown:212

The gamepad left thumbstick down.

-field GamepadLeftThumbstickRight:213

The gamepad left thumbstick right.

-field GamepadLeftThumbstickLeft:214

The gamepad left thumbstick left.

-field GamepadRightThumbstickUp:215

The gamepad right thumbstick up.

-field GamepadRightThumbstickDown:216

The gamepad right thumbstick down.

-field GamepadRightThumbstickRight:217

The gamepad right thumbstick right.

-field GamepadRightThumbstickLeft:218

The gamepad right thumbstick left.

-remarks

This enum is used in the Windows.UI.Core.KeyEventArgs.VirtualKey, Windows.UI.Core.AcceleratorKeyEventArgs.VirtualKey, Windows.UI.Xaml.Input.KeyRoutedEventArgs.Key, Windows.UI.Xaml.Input.KeyboardAccelerator.Key, and Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs.Key properties.

For more information, including code examples, see Keyboard events and Keyboard Accelerators.

-examples

-see-also

Keyboard events, Keyboard Accelerators, Windows.System.VirtualKeyModifiers, Windows.UI.Core.AcceleratorKeyEventArgs.VirtualKey