# Disabling system keys (alt+f4 - alt+tab)

**URL:** <https://forums.unrealengine.com/t/disabling-system-keys-alt-f4-alt-tab/465375>\
**Category:** Platform & Builds\
**Tags:** disable, unreal-engine, question\
**Created:** [May 18, 2020, 5:36am UTC](https://forums.unrealengine.com/t/disabling-system-keys-alt-f4-alt-tab/465375 "2020-05-18T05:36:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JoostDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joostdev/32/88718_2.png) [@JoostDev](https://forums.unrealengine.com/u/JoostDev)\
**Post date:** [August 17, 2023, 8:27am UTC](https://forums.unrealengine.com/t/disabling-system-keys-alt-f4-alt-tab/465375/3 "2023-08-17T08:27:32Z")

</div>

(Old thread, adding a reply anyway in case anyone else runs into this thread.)

For Alt+F4 this post explains how to disable it, so apparently that’s actually possible:

> [@Catching/Blocking Alt+f4 in Packaged Game](https://forums.unrealengine.com/t/catching-blocking-alt-f4-in-packaged-game/348273/5):
>
> Actually you can also handle window close requests in user code, without ever touching the engine source. The viewport client does have a delegate for exactly that purpose, which can be obtained by the UGameViewportClient::OnWindowCloseRequested() accessor. The world viewport client can be obtained with the UGameInstance::GetGameViewportClient() method, but beware that this is only available after the GameInstance has been initialized, but not yet in the UGameInstance::Init() method. So, as c…

---

_[View the full topic](https://forums.unrealengine.com/t/disabling-system-keys-alt-f4-alt-tab/465375)._
