A problem with Return in a field

Robert Brenstein rjb at robelko.com
Tue Dec 12 12:44:30 EST 2006


>Robert Brenstein wrote:
>
>>If you want to trap return you need 4 handlers in your field
>>
>>on returnKey
>>on enterKey
>>on returnInField
>>on enterInField
>
>Actually, just to be picky, the returnKey and enterKey handlers 
>aren't needed in fields. Only returnInField and enterInField are 
>sent directly to fields. The other two will never trigger.
>
>That said, I had no problem running Charle's field script as long as 
>the field was sized correctly. The keydown handler worked as 
>expected when autoTab was set to true.
>
>--
>Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>HyperActive Software           |     http://www.hyperactivesw.com


Ah, yes, Jacque is right as always :) -- the returnKey and enterKey 
handlers are called only when there is no explicit text selection, so 
their place is on the card.

Robert



More information about the use-livecode mailing list