# 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="https://1456550285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWTlPaoHd1McSakqMigu%2Fuploads%2Fgit-blob-813c4aca1c96bbb1ace97dfb272409a8ced021ba%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
