Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 877 Bytes

keyboardinput_getkeystateforcurrentthread_617675970.md

File metadata and controls

35 lines (21 loc) · 877 Bytes
-api-id -api-type
M:Microsoft.UI.Input.KeyboardInput.GetKeyStateForCurrentThread(Windows.System.VirtualKey)
winrt method

Microsoft.UI.Input.KeyboardInput.GetKeyStateForCurrentThread(Windows.System.VirtualKey)

-description

Retrieves the state of a virtual-key.

-parameters

The virtual-key for which the state is returned.

-param virtualKey

-returns

The flags indicating the current state of the supplied virtual-key when the input event fired.

Note

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

-remarks

-see-also

CoreVirtualKeyStates enum, VirtualKey enum

-examples