Why SetFocus() consumes pressed Keyboard Input ?

stops

When I set focused on UMG Button
(The Green colored text is focused, and it is set focused when it created.),
It comsumes keyboard input (it consumes Moving with ‘W’ key on Keyboard in this GIF, So Character stops moving while i’m still holding pressing ‘W’ key).

widgetfocus

And the other problem is : When i mouse clicked, the the button focus is released.

1. I want to make the ‘Set Focus’ does not interrupt pressed Keyboard Input.

2. And When i Press Mouse Click, button focus is released. But I want to make it not released by not just mouse click, but any other input.

How can i solve this?

I have the same issue when I set focus to game and ui when opening my inventory, if im holding down W then my character stops when it opens, and I have to click again release the W ley and press the W key again to move with my inventory open.

I’d also like a solution that allows me to open my inventory and keep moving while it happens.

Hello, I didn’t find any solutions for ‘SetFocut()’.
So I do not use ‘SetFocus()’ anymore, but just created custom event.

How I solved :
Press Key (Or get in trigger box) → Custom Event → Widget Delegate

And I think if you define some other custom event for close Inventory, like Press ‘X’ Button on Widget or Press Inventory Key again while it is valid, that would work well.

Hope this helps.