Game lost focus in Html window when opening widget

Hi all, I am right now working in UE 4.23 to package html-5. So far so good, but the only problem is the out of focus of the game when opening a widget. So I can move the cursor out of the browser screen and have to click left in the gamescreen again to continue the game (also with closing the widget)

I am struggeling and googling a while now, but can’t get a proper working solution. Can anybody help me out with this issue?

Thanks in advance!


I found that it’s not the spawning of the widget itself, but the mouse cursor appearing in the viewport.

I have tried a lot with gameinputs, locking mouse and so on, but still no luck…

Hope someone can help me out!?