# How do I close a widget BP

**URL:** <https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [August 11, 2016, 10:41am UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223 "2016-08-11T10:41:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [August 11, 2016, 10:41am UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/1 "2016-08-11T10:41:12Z")

</div>

Hallo  
Property me a UI made with a WidgetBP that close by Close Button works.  
Now I wanted to know how the UI closes by ESC

Greeting

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [August 12, 2016, 1:47pm UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/2 "2016-08-12T13:47:18Z")

</div>

Can there not help me

---

<div class="post-metadata">

**Author:** ![Mezzow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mezzow](https://forums.unrealengine.com/u/Mezzow)\
**Post date:** [August 12, 2016, 3:45pm UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/3 "2016-08-12T15:45:20Z")

</div>

There is a checkbox “ESC closes Menu” on PrimalUIs default settings.

If you need to do things when closing you can implement the “OnKeyDown” function and do this:

[![](https://i.imgur.com/UeTyPbE.png) ](https://i.imgur.com/UeTyPbE.png)

The “Close” event is a custom event that does the same things as hitting the close button(ignore the remove buff stuff, just an example i pulled from an existing bp):

[![](https://i.imgur.com/I7pTD4m.png) ](https://i.imgur.com/I7pTD4m.png)

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [August 13, 2016, 12:10am UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/4 "2016-08-13T00:10:20Z")

</div>

Sehe gerade Du bist Deutscher Mezzow, kannst Du mich bitte bei Steam adden.  
Steamname: pumaesi

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [September 12, 2016, 11:52am UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/5 "2016-09-12T11:52:11Z")

</div>

When I close the window with ESC, then the mouse cursor stays on the screen are.

What should I do, that the mouse pointer disappears after I pressed ESC?

---

<div class="post-metadata">

**Author:** ![WoefulMacabre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WoefulMacabre](https://forums.unrealengine.com/u/WoefulMacabre)\
**Post date:** [September 12, 2016, 2:55pm UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/6 "2016-09-12T14:55:45Z")

</div>

If you followed the graphs Mezzow provided exactly, then the mouse would not be staying on the screen.

-WM

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [September 12, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/7 "2016-09-12T20:03:43Z")

</div>

But I, I then tried a file and as the mouse remains on the screen are.  
Here the link is to the file:

> **[ADKTutorials/ItemCustomUI at master · Mezzow/ADKTutorials](https://github.com/Mezzow/ADKTutorials/tree/master/ItemCustomUI)**
>
> master/ItemCustomUI

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/how-do-i-close-a-widget-bp/71223/8 "2022-03-09T21:34:22Z")

</div>


