Method RaiseKeyDownEvent
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
Remarks
Can be used to simulate key press events.