Table of Contents

Event ProcessKeyDown

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Invoked when the user presses a key, allowing subscribers to do things during key down events. Set Handled to true to stop the key from being processed by other views. Invoked after KeyDown and before InvokingKeyBindings.

public event EventHandler<Key>? ProcessKeyDown

Returns

EventHandler<Key>
Invoked when the user presses a key, allowing subscribers to do things during key down events. Set to true to stop the key from being processed by other views. Invoked after and before .

Remarks

SubViews can use the ProcessKeyDown of their super view override the default behavior of when key bindings are invoked.

Not all terminals support distinct key up notifications; applications should avoid depending on distinct KeyUp events.

See for an overview of Terminal.Gui keyboard APIs.