# focusChanged

> Event invoked on the main thread when the accessibility node gains or loses screen reader focus.

## Definition

* **Type:** Event
* **Namespace:** [UnityEngine.Accessibility](/engine/6000.7/script-reference/unityengine/accessibility.md)
* **Assembly:** UnityEngine.AccessibilityModule

```csharp
public event Action<AccessibilityNode, bool> focusChanged
```

### Remarks

Subscribe to this event if you need to know when the node gains or loses screen reader focus. For example, to select a text field when the user navigates to it, so that it can receive keyboard input.
