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)
- C#
- VB
- F#
protected virtual void OnAccessKey(
RoutedEventArgs e
)
Protected Overridable Sub OnAccessKey (
e As RoutedEventArgs
)
abstract OnAccessKey :
e : RoutedEventArgs -> unit
override OnAccessKey :
e : RoutedEventArgs -> unit
Parameters
- RoutedEventArgs
- AccessKeyEventArgs are passed on to indicate if there are multiple matches or not.