How to detect RETURN key pressed on a textbox?

Get help using Construct 2

Post » Sun Mar 16, 2014 6:43 am

Hi guys, I want to trigger an action when a user presses the RETURN/ENTER key while focused inside a textbox. Is this possible?

I have a textbox where a user can type "walk north" and press ENTER, which will trigger an action on the screen.

But for some reason, the ENTER key (using the keyboard plugin event "ON RETURN PRESSED"), is only detected when a textbox is not in focus. As soon as the user types something into the textbox, RETURN cannot be detected. What's a way around this?
Posts: 19
Reputation: 353

Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Sproadic and 6 guests