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?
B
4
G
1
Posts: 19
Reputation: 353

Return to How do I....?

Who is online

Users browsing this forum: evillair, Exabot [Bot], LunchboxGames, NumberOne, rekjl and 16 guests