CoreVirtualKeyStates CoreVirtualKeyStates CoreVirtualKeyStates CoreVirtualKeyStates Enum


Specifies flags for indicating the possible states of a virtual key.

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

public : enum class CoreVirtualKeyStates
enum class winrt::Windows::UI::Core::CoreVirtualKeyStates : uint32_t
public enum CoreVirtualKeyStates
Public Enum CoreVirtualKeyStates
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Down Down Down Down

The key is pressed down for the input event.

Locked Locked Locked Locked

The key is in a toggled or modified state (for example, Caps Lock) for the input event.

All keys support the Locked state (not just the standard Caps Lock and Num Lock keys).

None None None None

The key is up or in no specific state.

See Also