Table of Contents

Enum KeyEventType

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

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

public enum KeyEventType

Fields

Press = 1

A key was pressed. This is the default and matches legacy Key behavior.

Release = 3

A key was released.

Repeat = 2

A key that was previously pressed is being held down and the terminal is sending repeat events.

Remarks

Not all drivers report all event types. When a driver does not distinguish press from repeat, or does not report key releases, the event type defaults to Press.

This enum is used by EventType to carry richer keyboard semantics through the input pipeline.