Table of Contents

Struct KeyEventRef

Namespace
Xui.Core.Abstract.Events
Assembly
Xui.Core.dll

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

char

Handled

Set to true by the handler to indicate the event was consumed.

public bool Handled

Field Value

bool

IsRepeat

True if this is an auto-repeat event (key held down).

public bool IsRepeat

Field Value

bool

Key

The virtual key code for key down/up events.

public VirtualKey Key

Field Value

VirtualKey

Shift

True if the Shift key is held during this event.

public bool Shift

Field Value

bool