UMG On key down doesn't work since 4.11

Hi,

I just updated my project from 4.10 to 4.11.
I have a pause menu, I used SetInputModeUIOnly and the SetGamePaused blueprint nodes to activate it.
I overwrote the On Key Down function in the widget I used for the pause menu.

Everything worked fine before the update.
Now OnKeyDown in the widget is not called.
(I tried the same without pauseing the game, the widget still doesn’t get any key down event).

Did something change about the way this overiddable function works, or is it a bug?
Is there anything I should check, which may cause this problem?

Thanks,

Elathan

Hi Elathan,

I ran into this issue today, as well when upgrading from 4.10 to 4.11. The Widget had reset “IsFocusable” back to false during the 4.11 conversion process. Simply re-enabling this restored the OnKeyDown event to working status.

For reference, I have a PauseMenu child of User Widget. To enable “IsFocusable”, I select [PauseMenu] in the Hierarchy panel, then in the Details panel, set “Is Focusable” (found under the Interaction tab) to true.

I hope it’s this simple for you, too!

-Kelson

I have the same setting. Checking IsFocusable solved my problem.
Thanks.

Thank you so much for sharing this KGist! I ran into the same thing today and if not for your post I don’t know how I would have ever fixed this. You’ve saved me a lot of time and vain effort, thanks again!

Glad to hear it!