I need my menus to be usable with keyboard, not only mouse.
Buttons are procedurally added and, just after populating the menu with the buttons, I set the keyboard focus to the 1st one. Buttons with keyboard focus turn red.
Like this:
My problem is that pressing Enter to choose that 1st option (“Good” in the example image) is not activating the button. It has keyboard focus (the blue outline confirms that) but it does not react to Enter key.
I have to change keyboard focus to the second button and go back to the 1st one (with cursor down/up keys), then it works.
In other words, I need to move the keyboard focus with cursor keys to make it work. The procedurally assigned keyboard focus is not working.
This is the widget blueprint section
or this…
You see… I’ve already tried with and without a delay (sometimes it’s just that simple), with and without an intermediate variable to store the reference to the button, tried setting keyboard focus again after the Set Input node, tried with and without “flush Input” option… nothing works.
¿Anyone has a clue about this?