> For the complete documentation index, see [llms.txt](https://docs.msquared.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.msquared.io/creation/unreal-development/features-and-tutorials/helpers-and-extras/listening-to-the-applications-focus-changing.md).

# Listening to the application's focus changing

{% hint style="success" %}
verified: 2025-11-19 version: v39
{% endhint %}

In release v39 we have added a new helper function: `BindToApplicationActivationStateChanged`. This exposes some functionality previously only available in C++: `FSlateApplication::Get().OnApplicationActivationStateChanged()`.

You can use this to listen to when the application's "activation state" changes, i.e. whether the game window is in focus or not. This can enable you to handle people e.g. Alt+Tabbing in & out of your application.

There is an equivalent `UnbindFromApplicationActivationStateChanged` you can use to unbind the listener you added if desired.

<figure><img src="/files/FRvuyKNbT7Lz9s6etuqr" alt=""><figcaption></figcaption></figure>
