Skip to main content

HasKeyboardFocus 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)

public bool HasKeyboardFocus()

Return Value​

Boolean

Remarks​

WindowsUIA_HasKeyboardFocusPropertyId
macOSNSAccessibilityProtocol.isAccessibilityFocused

See Also​

Reference​

AutomationPeer Class
Avalonia.Automation.Peers Namespace