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.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected override void OnKeyDown(
KeyEventArgs e
)

Parameters​

  KeyEventArgs
Data about the event.

See Also​

Reference​

Button Class
Avalonia.Controls Namespace