Instance Property

accessibilityFocusedUIElement

The deepest descendant of the accessibility hierarchy that has the focus.

Declaration

var accessibilityFocusedUIElement: Any? { get }

Discussion

You can assume that the search for the focus has already been narrowed down to the accessibility element. Override this method to do deeper searching by identifying which child element, if any, may have the focus. If a child element does not have the focus, either return self or, if available, invoke the superclass's implementation. The default NSView and NSCell implementations test whether the accessibility element is an ignored element and, if so, return the element’s first unignored parent; otherwise they return self