VirtualKeyModifiers VirtualKeyModifiers VirtualKeyModifiers VirtualKeyModifiers VirtualKeyModifiers Enum


Specifies the virtual key used to modify another keypress. For example, the Ctrl key when pressed in conjunction with another key, as in Ctrl+C.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class VirtualKeyModifiers
enum class winrt::Windows::System::VirtualKeyModifiers : uint32_t
public enum VirtualKeyModifiers
Public Enum VirtualKeyModifiers
var value = Windows.System.VirtualKeyModifiers.control;
System.FlagsAttribute ContractVersionAttribute

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Control Control Control Control Control 1

The Ctrl (control) virtual key.

Menu Menu Menu Menu Menu 2

The Menu virtual key.

None None None None None 0

No virtual key modifier.

Shift Shift Shift Shift Shift 4

The Shift virtual key.

Windows Windows Windows Windows Windows 8

The Windows virtual key.


This enum is used with the Modifiers property of a KeyboardAccelerator object. For more information, including code examples, see Keyboard Accelerators.

See also