Share via

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 supports a bitwise combination of its member values.

public enum class VirtualKeyModifiers
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class VirtualKeyModifiers
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum VirtualKeyModifiers
var value = Windows.System.VirtualKeyModifiers.none
Public Enum VirtualKeyModifiers

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)


Control 1

The Ctrl virtual key.

Menu 2

The Alt virtual key.

None 0

No virtual key modifier.

Shift 4

The Shift virtual key.

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.

Applies to

See also