Returns a Boolean value that indicates whether the accessibility element has the keyboard focus.
SDK
- macOS 10.10+
Framework
- App
Kit
Declaration
optional func isAccessibilityFocused() -> Bool
Return Value
true
if this element has the keyboard focus; otherwise, false
.
Discussion
This method is the getter for the NSAccessibility
protocol’s accessibility
property.