Event KeyDown
Invoked when the user presses a key, allowing subscribers to pre-process the key down event. This is fired from OnKeyDown(Key) before OnInvokingKeyBindings(Key, KeyBindingScope). Set Handled to true to stop the key from being processed by other views.
public event EventHandler<Key>? KeyDown
Returns
- EventHandler<Key>
- Invoked when the user presses a key, allowing subscribers to pre-process the key down event. This is fired from before . Set to true to stop the key from being processed by other views.
Remarks
Not all terminals support key distinct up notifications, Applications should avoid depending on distinct KeyUp events.