Share via


VirtualKeyModifiers Enum

Definition

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
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum VirtualKeyModifiers
var value = Windows.System.VirtualKeyModifiers.none
Public Enum VirtualKeyModifiers
Inheritance
VirtualKeyModifiers
Attributes

Windows requirements

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

Fields

Name Value Description
None 0

No virtual key modifier.

Control 1

The Ctrl virtual key.

Menu 2

The Alt virtual key.

Shift 4

The Shift virtual key.

Windows 8

The Windows virtual key.

Remarks

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