# Losing focus from widget - common UI problem

**URL:** <https://forums.unrealengine.com/t/losing-focus-from-widget-common-ui-problem/728522>\
**Category:** UI\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [December 14, 2022, 10:56pm UTC](https://forums.unrealengine.com/t/losing-focus-from-widget-common-ui-problem/728522 "2022-12-14T22:56:19Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Lukash3k1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lukash3k1](https://forums.unrealengine.com/u/Lukash3k1)\
**Post date:** [February 19, 2024, 7:47pm UTC](https://forums.unrealengine.com/t/losing-focus-from-widget-common-ui-problem/728522/12 "2024-02-19T19:47:25Z")

</div>

Solution doesn’t work for me:  
I use “Common Activatable widget switcher” and changing transition to 0.0 help me  
more details:

> [@Common UI Activatable Widget Switcher - Losing Focus Solution](https://forums.unrealengine.com/t/common-ui-activatable-widget-switcher-losing-focus-solution/1357074):
>
> Hi, I’ve spent a lot of time messing around with Common UI and I was having an issue with the CommonActivatableWidgetSwitcher (CAWS). There’s not great documentation or support for Common UI yet so I wanted to share what I learned here to help anyone having this issue in the future… THE ISSUE I was using the CAWS in my UI to switch between screens (Inventory, Map, Settings etc.). However, I noticed that in some cases after switching the new widget wasn’t becoming active and for Gamepad in …

And also i have problem with popup widget when i spam “back button” and just clicking confirm (fast creating widget / removing) it cause losing focus.

I had overrided fucntion “Get Desired Focus Target” in Common Widget

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/a/faa5956a701c7a28b3ed7aa25691365a813c648b.png)

And it worked, but after adding:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/f/31f6ad0aaacb0d8a93c8862f337842a486b331b1.png)

Problem solved.

---

_[View the full topic](https://forums.unrealengine.com/t/losing-focus-from-widget-common-ui-problem/728522)._
