Can't get focus on Widget without clicking something interactable

Hi,

I’m having problem getting “focus” on a Widget to react to Gamepad/Keyboard input.

I’ve tried setting Input Mode to “UI Only” and to “Game and UI”.

I’ve tried setting in in the Widget graph:

And I’ve tried setting in in the blueprint that spawns the Widget like this:

I’m testing it by overriding OnKeyDown and OnPreviewKeyDown and setting a breakpoint.

But the Gamepad/Keyboard will not trigger an event, unless I’ve clicked something in the Widget with the mouse first and I find this really confusing. If I click something first, then both OnPreviewKeyDown and OnKeyDown fires.

I just want the Widget to “have focus” when spawned.

Any good ideas?

Thank you,