-api-id | -api-type |
---|---|
M:Microsoft.UI.Input.KeyboardInput.GetKeyStateForCurrentThread(Windows.System.VirtualKey) |
winrt method |
Retrieves the state of a virtual-key.
The virtual-key for which the state is returned.
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).