Is there a textChanged property?

J. Landman Gay jacque at hyperactivesw.com
Thu May 9 15:19:19 EDT 2013


On 5/9/13 1:48 PM, Dr. Hawkins wrote:
> On Thu, May 9, 2013 at 11:12 AM, J. Landman Gay
> <jacque at hyperactivesw.com> wrote:
>>
>> Depending on your scripts, it may work to add this to your keystroke macro:
>>
>>   if the selectedfield is not empty then select empty
>>
>> That should give you either a closefield or an exitfield.
>
> The situation I need to catch is something along the lines of a 5 in
> the field, the user changes to 6, and hits the hotkey to close down.
> If I were the typist, I'd have tabbed out first (which is why this
> lasted so long).  Once you put real people at the keyboard, though . .
> . (and we discovered this by my assistant using the program . . )
>
>

The line of script will simulate tabbing out if the insertion point is 
in a field. The engine will then send either a closefield or exitfield, 
depending on whether the text has changed.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list