Skip to main content

OnAccessKey Method

This method is used to execute the action on an effective IInputElement when a corresponding access key has been invoked. By default, the Focus() method is invoked with the NavigationMethod.Tab to indicate a visual focus adorner. Overwrite this method if other methods or additional functionality is needed when an item should receive the focus.

Definition

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

protected virtual void OnAccessKey(
RoutedEventArgs e
)

Parameters

  RoutedEventArgs
AccessKeyEventArgs are passed on to indicate if there are multiple matches or not.

See Also

Reference

InputElement Class
Avalonia.Input Namespace