# isAppFocused

> Returns true if the application has the focus. Events are sent only if this flag is set to true.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements.InputSystem](/engine/6000.3/script-reference/unityengine/uielements/inputsystem.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public bool isAppFocused { get; }
```
