Skip to main content

OnKeyDown Method

Invoked when an unhandled KeyDownEvent reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Definition​

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

protected virtual void OnKeyDown(
KeyEventArgs e
)

Parameters​

  KeyEventArgs
Data about the event.

See Also​

Reference​

InputElement Class
Avalonia.Input Namespace