Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.67 KB

physicalkeystatus.md

File metadata and controls

50 lines (28 loc) · 1.67 KB
-api-id -api-type
T:Microsoft.UI.Input.PhysicalKeyStatus
winrt struct

Microsoft.UI.Input.PhysicalKeyStatus

-description

Specifies the possible states of a physical keyboard key.

-struct-fields

-field IsExtendedKey

The key is an extended key, such as the right-hand ALT and CTRL keys that appear on an Enhanced 101/102-key keyboard. See Extended-Key Flag for more info.

-field IsKeyReleased

The key moved from a pressed to a released state. See Transition State Flag for more info.

-field IsMenuKeyDown

The Alt key (represented by the VirtualKey.Menu value) is currently pressed down.

-field RepeatCount

The number of times a key was pressed. See Repeat Count for more info.

-field ScanCode

The scan code for a key that was pressed. See Scan Code for more info.

-field WasKeyDown

The key is currently pressed down. See Previous Key-State Flag for more info.

-remarks

The keyboard device driver receives scan codes from the keyboard and interprets and translates (maps) them into virtual-key codes (device-independent values defined by the system to identify the purpose of a key).

-see-also

CharacterReceivedEventArgs.KeyStatus, KeyEventArgs.KeyStatus

-examples