---
title: kAXFocusedAttribute
framework: applicationservices
role: symbol
role_heading: Global Variable
path: applicationservices/kaxfocusedattribute
---

# kAXFocusedAttribute

## Declaration

```swift
var kAXFocusedAttribute: String { get }
```

## Discussion

Discussion Indicates whether the accessibility object currently has the keyboard focus. Note that you can set the value of the AXFocused attribute to true to accept keyboard focus. This attribute is required for all accessibility objects representing elements that can receive keyboard focus.
