# My buttons lose keyboard focus if a mouse is clicked

**URL:** <https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [May 1, 2023, 3:26pm UTC](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836 "2023-05-01T15:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 2, 2023, 9:52am UTC](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836/6 "2023-05-02T09:52:01Z")

</div>

> [@StevenHammon](#):
>
> I make sure I control my cursor all the time

The PC has no idea what is happening to the cursor while it’s over widgets:

> [@Hide Mouse - Widget Confusion](https://forums.unrealengine.com/t/hide-mouse-widget-confusion/428952):
>
> Ok this is a basic example of the major problem I’m facing. I have absolutely no idea why this Widget Blueprint doesn’t run as intended. I’m almost considering it’s not my fault. The example above fails to hide the mouse after “Hide Mouse” is printed. Does anyone else get a different result when replicating? Thanks for the help in advance, much appreciated.

And every widget decides what the cursors looks like and how it behaves. Unless something dramatic changes in UE5 I’m not aware of, that is.

---

_[View the full topic](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836)._
