AutomationPeerHasKeyboardFocus Method

Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.

Definition

Namespace: Avalonia.Automation.Peers
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public bool HasKeyboardFocus()

Return Value

Boolean

Remarks

WindowsUIA_HasKeyboardFocusPropertyId
macOSNSAccessibilityProtocol.isAccessibilityFocused

See Also