Struct KeyEventRef
Represents a keyboard input event. Used for both key down (Key is set) and character input (Character is set) events.
public ref struct KeyEventRef
- Inherited Members
Fields
Character
The Unicode character for character input events (e.g. WM_CHAR). Zero when this is a key down/up event without character translation.
public char Character
Field Value
Handled
Set to true by the handler to indicate the event was consumed.
public bool Handled
Field Value
IsRepeat
True if this is an auto-repeat event (key held down).
public bool IsRepeat
Field Value
Key
The virtual key code for key down/up events.
public VirtualKey Key
Field Value
Shift
True if the Shift key is held during this event.
public bool Shift