On text committed (Editable text box), how to set pressing Enter as a different event?


The event “On Text Committed” for editable text box in ue4 blueprints is “called whenever the user presses enter or the text box loses focus”.

I have a main menu screen where you enter your name and what I would like it to do is whenever the user presses enter, the game automatically starts without having the need to press “start” button next to it (As in “Open Level” in blueprints).

Is there a way to only open another level when enter key is pressed after user has inserted text and not when the text box loses focus?

You can check the commit method passed to the event.

1 Like

Sorry, could you please specify how I could use it?

You can use an Equals (Enum) node to check the commit method against “On Enter”.