Method OnKeyDown
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. Set Handled to true to stop the key from being processed further.
protected virtual bool OnKeyDown(Key key)
Parameters
key
KeyThe 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.
Remarks
For processing HotKeys and commands, use Command and Add(Key, params Command[])instead.
Fires the KeyDown event.