TextField - Pressed Enter?

BlitzPlus Forums/BlitzPlus Programming/TextField - Pressed Enter?

Tyler(Posted 2005) [#1]
Is there any way to figure if the person has pressed "Enter/Return" in a text field? I have blitzplay going in Blitz+ and I wanted to send the packet after the enter key was pressed, instead of having to click a "Send" button.


Beaker(Posted 2005) [#2]
Yes, if you get 13 in the EventData() for the text field, then someone has pressed Return.


Tyler(Posted 2005) [#3]
You rock mightily. I'll give it a test when I get home! Thank you again.


Grey Alien(Posted 2005) [#4]
As a tip, don't use Ctrl+M as a shortcut as its key code is 13!


Tyler(Posted 2005) [#5]
Alrighty, thank you! It works great so far!