Share via


KeyEventArgs Class

Definition

Provides event data for various key up and key down events.

public ref class KeyEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class KeyEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class KeyEventArgs
Public NotInheritable Class KeyEventArgs
Inheritance
Object Platform::Object IInspectable KeyEventArgs
Attributes

Properties

Handled

Gets or sets whether the associated key up and key down event has been handled.

KeyStatus

Gets the status of the physical key press that raised the character-received event.

Timestamp

Gets the time when the keyboard input occurred.

VirtualKey

Gets the virtual-key that maps to the key that was pressed.

Applies to

See also