Table of Contents

Method RaiseKeyDownEvent

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RaiseKeyDownEvent(Key)

Called when the user presses a key (by the ConsoleDriver). Raises the cancelable KeyDown event, then calls NewKeyDownEvent(Key) on all top level views, and finally if the key was not handled, invokes any Application-scoped KeyBindings.

public static bool RaiseKeyDownEvent(Key key)

Parameters

key Key

Returns

bool

true if the key was handled.

Remarks

Can be used to simulate key press events.