return key

Yates, Glen JAMES.G.YATES at saic.com
Fri Apr 12 15:20:01 EDT 2002


> -----Original Message-----
> From: yves COPPE [mailto:yvescoppe at skynet.be]
> Hi,
> 
> I have a fld which locktext is false.
> The fld has "move to next fld when return/tab key is pressed" 
> is checked.
> At the side of the fld, a btn "OK" with "auto-click when return/enter 
> key is pressed" is checked.
> 
> 
> I'd like the user type one only line in the fld, then hit the return 
> key to activate the OK btn.

	on enterInField
	  send mouseUp to button "OK"
	end enterInField

	on returnInField
	  send enterInField to me
	end returnInField


That should do it.

-Glen Yates



More information about the use-livecode mailing list