Detect gadget enter key hit.

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

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?

I ended up making a button with the 4 flag (a thing in version 1.41). It seemed to work nicely.