Event KeyDown
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. Set Handled to 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.
Remarks
Not all terminals support key distinct up notifications, Applications should avoid depending on distinct KeyUp events.