Skip to main content

GetAcceleratorKey Method

Gets the accelerator key combinations for the element that is associated with the UI Automation peer.

Definition

Namespace: Avalonia.Automation.Peers
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public string? GetAcceleratorKey()

Return Value

String

Remarks

An accelerator key (sometimes called a shortcut key) exposes a key combination for which can be used to invoke an action, for example, an "Open..." menu item on Windows often has an accelerator key of "Ctrl+O".

WindowsUIA_AcceleratorKeyPropertyId
macOSNo mapping

See Also

Reference

AutomationPeer Class
Avalonia.Automation.Peers Namespace