Table of Contents

Property EventType

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

EventType

Gets or sets the type of keyboard event: press, release, or repeat.

public KeyEventType EventType { get; init; }

Property Value

KeyEventType

Remarks

Defaults to Press, which preserves backward compatibility with all existing keyboard handling code.

Not all drivers populate this property. When the driver does not distinguish event types, the value remains Press.

This property does not participate in equality comparisons. Two Key instances that differ only in EventType are considered equal.