Method OnKeyDown | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

OnKeyDown(Key)

Called 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.

protected override bool OnKeyDown(Key key)

Parameters

key Key

The key that produced the event.

Returns

bool

false if the key down event was not handled. true if the event was handled and processing should stop.