-api-id | -api-type |
---|---|
T:Windows.System.VirtualKey |
winrt enum |
Specifies the values for each virtual key.
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).
No virtual key value.
The left mouse button.
The right mouse button.
The cancel key or button.
The middle mouse button.
An additional "extended" device key or button (for example, an additional mouse button).
An additional "extended" device key or button (for example, an additional mouse button).
The back key or button.
The Tab key or button.
The Clear key or button.
The Enter key or button.
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.
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.
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.
The Pause key or button.
The Caps Lock key or button.
The Kana symbol option key or button.
Kana are the syllabaries that form parts of the Japanese writing system.
The Hangul symbol option key or button.
Hangul are the syllabaries that form parts of the Korean writing system.
The Junja symbol option key or button.
Junja are the syllabaries that form parts of the Korean writing system.
The Final symbol key or button.
The Hanja symbol option key or button.
Hanja are the syllabaries that form parts of the Korean writing system.
The Kanji symbol option key or button.
Kanji are the syllabaries that form parts of the Japanese writing system.
The Esc key or button.
The IME convert button.
The IME nonconvert button.
The IME accept button.
The IME mode change button.
The Spacebar key or button.
The Page Up key or button.
The Page Down key or button.
The End key or button.
The Home key or button.
The Left Arrow key or button.
The Up Arrow key or button.
The Right Arrow key or button.
The Down Arrow key or button.
The Select key or button.
The Print key or button.
The execute key or button.
The Print Screen key or button.
The Insert key or button.
The Delete key or button.
The Help key or button.
The number "0" key or button.
The number "1" key or button.
The number "2" key or button.
The number "3" key or button.
The number "4" key or button.
The number "5" key or button.
The number "6" key or button.
The number "7" key or button.
The number "8" key or button.
The number "9" key or button.
The letter "A" key or button.
The letter "B" key or button.
The letter "C" key or button.
The letter "D" key or button.
The letter "E" key or button.
The letter "F" key or button.
The letter "G" key or button.
The letter "H" key or button.
The letter "I" key or button.
The letter "J" key or button.
The letter "K" key or button.
The letter "L" key or button.
The letter "M" key or button.
The letter "N" key or button.
The letter "O" key or button.
The letter "P" key or button.
The letter "Q" key or button.
The letter "R" key or button.
The letter "S" key or button.
The letter "T" key or button.
The letter "U" key or button.
The letter "V" key or button.
The letter "W" key or button.
The letter "X" key or button.
The letter "Y" key or button.
The letter "Z" key or button.
The left Windows key or button.
The right Windows key or button.
The application key or button.
The sleep key or button.
The Input Method Editor Off key or button.
The number "0" key or button as located on a numeric pad.
The Input Method Editor On key or button.
The number "1" key or button as located on a numeric pad.
The number "2" key or button as located on a numeric pad.
The number "3" key or button as located on a numeric pad.
The number "4" key or button as located on a numeric pad.
The number "5" key or button as located on a numeric pad.
The number "6" key or button as located on a numeric pad.
The number "7" key or button as located on a numeric pad.
The number "8" key or button as located on a numeric pad.
The number "9" key or button as located on a numeric pad.
The multiply (*) operation key or button as located on a numeric pad.
The add (+) operation key or button as located on a numeric pad.
The separator key or button as located on a numeric pad.
The subtract (-) operation key or button as located on a numeric pad.
The decimal (.) key or button as located on a numeric pad.
The divide (/) operation key or button as located on a numeric pad.
The F1 function key or button.
The F2 function key or button.
The F3 function key or button.
The F4 function key or button.
The F5 function key or button.
The F6 function key or button.
The F7 function key or button.
The F8 function key or button.
The F9 function key or button.
The F10 function key or button.
The F11 function key or button.
The F12 function key or button.
The F13 function key or button.
The F14 function key or button.
The F15 function key or button.
The F16 function key or button.
The F17 function key or button.
The F18 function key or button.
The F19 function key or button.
The F20 function key or button.
The F21 function key or button.
The F22 function key or button.
The F23 function key or button.
The F24 function key or button.
The navigation up key or button.
The navigation menu key or button.
The navigation up key or button.
The navigation down key or button.
The navigation left key or button.
The navigation right key or button.
The navigation accept key or button.
The navigation cancel key or button.
The Num Lock key or button.
The Scroll Lock (ScrLk) key or button.
The left Shift key or button.
The right Shift key or button.
The left Ctrl key or button.
The right Ctrl key or button.
The left Alt key or button.
The right Alt key or button.
The go back key or button.
The go forward key or button.
The refresh key or button.
The stop key or button.
The search key or button.
The favorites key or button.
The go home key or button.
The gamepad A button.
The gamepad B button.
The gamepad X button.
The gamepad Y button.
The gamepad right shoulder.
The gamepad left shoulder.
The gamepad left trigger.
The gamepad right trigger.
The gamepad d-pad up.
The gamepad d-pad down.
The gamepad d-pad left.
The gamepad d-pad right.
The gamepad menu button.
The gamepad view button.
The gamepad left thumbstick button.
The gamepad right thumbstick button.
The gamepad left thumbstick up.
The gamepad left thumbstick down.
The gamepad left thumbstick right.
The gamepad left thumbstick left.
The gamepad right thumbstick up.
The gamepad right thumbstick down.
The gamepad right thumbstick right.
The gamepad right thumbstick left.
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.
Keyboard events, Keyboard Accelerators, Windows.System.VirtualKeyModifiers, Windows.UI.Core.AcceleratorKeyEventArgs.VirtualKey