Event KeyDown | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Raised when the user presses a key.

Set Handled to true to indicate the key was handled and to prevent additional processing.

public static event EventHandler<Key>? KeyDown

Returns

EventHandler<Key>

Raised when the user presses a key. Set to true to indicate the key was handled and to prevent additional processing.

Remarks

All drivers support firing the KeyDown event. Some drivers (Curses) do not support firing theKeyDown and KeyUp events.

Fired after KeyDown and before KeyUp.