AccessKeyHandler Class

Summary

Handles access keys for a window.
Namespace
Avalonia.Input
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IAccessKeyHandler"] click Interface0 "/api/Avalonia.Input/IAccessKeyHandler" Type["AccessKeyHandler"] class Type type-node

Syntax

public class AccessKeyHandler : IAccessKeyHandler

Fields

Name Constant Value Summary
AccessKeyPressedEvent
Defines the AccessKeyPressed attached event.
static

Properties

Name Value Summary
MainMenu IMainMenu?
Gets or sets the window's main menu.

Methods

Name Value Summary
OnKeyDown(object, KeyEventArgs) void
Called when a key is pressed in the owner window.
OnPreviewKeyDown(object, KeyEventArgs) void
Called when a key is pressed in the owner window.
OnPreviewKeyUp(object, KeyEventArgs) void
Handles the Alt/F10 keys being released in the window.
OnPreviewPointerPressed(object, PointerEventArgs) void
Handles pointer presses in the window.
Register(char, IInputElement) void
Registers an input element to be associated with an access key.
SetOwner(IInputRoot) void
Sets the owner of the access key handler.
Unregister(IInputElement) void
Unregisters the access keys associated with the input element.