Download

UMG Pressing enter inside a textbox to trigger a button

Hello everyone, i am fairly new to Unreal Engine, and have learned a great deal so far; but i currently find myself in a position where i need a helping hand.

I am trying to press enter when i am inside a textbox, to trigger a button response (as if i clicked it), however this doesn’t work until i click the background picture then pressing enter does work as i wanted to.

anyone know’s how to fix this?

Result:
Enter something in the texbox, press enter and nothing happens unless we click the background first

Expected Result:
Enter something in the textbox, press enter and button event will be triggered (the code after a button press).

I personally think the issue is “Get Player Controller” is the whole screen, but the buttons etc are something different ?

Thank you for reading,