# focusChanged

> Raises when the Editor gets or loses focus in the operating system.

## Definition

* **Type:** Event
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static event Action<bool> focusChanged
```

### Remarks

\[EditorApplication.isFocused] toggles before this event raises.
