Detect gadget enter key hit.

BlitzPlus Forums/BlitzPlus Programming/Detect gadget enter key hit.

Arem(Posted 2005) [#1]
I want to be able to tell when a user hits the enter key while a textbox is selected. You used to do this by doing:

if eventid()=$401
if eventsource()=textbox
if eventdata()=13
**ENTER WAS HIT**
end if
end if
end if

This does not seem to work in Blitz version 1.39.

Suggestions?


Arem(Posted 2005) [#2]
I ended up making a button with the 4 flag (a thing in version 1.41). It seemed to work nicely.