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

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Raised when the user presses a key, allowing subscribers to pre-process the key down event. Called before key bindings are invoked and KeyDownNotHandled is raised. SetHandledto true to stop the key from being processed further.

public event EventHandler<Key>? KeyDown

Returns

EventHandler<Key>

Raised when the user presses a key, allowing subscribers to pre-process the key down event. Called before key bindings are invoked and is raised. Set to true to stop the key from being processed further.