Field modified function?

Ken Ray kray at
Sat Sep 16 03:04:49 EDT 2006

On 9/16/06 1:38 AM, "Josh Mellicker" <josh at> wrote:

> Regardless of the lookAndFeel setting, in OS X, if you change the
> text in an editable field, then immediately click on a popup menu or
> button, closeField is not sent, because the text field doesn't lose
> focus, and the cursor is actually still in the text field, you can
> still type even after clicking around quite a bit.
> This is unfortunate, forcing workarounds to check if the field
> contents have changed manually...

There's another way - create a frontscript tha has this script in it:

on mouseDown
  if (the platform is "MacOS") and (word 1 of the target is "button") then
    select empty
  end if
  pass mouseDown
end mouseDown

That should do it...

Ken Ray
Sons of Thunder Software
Web site:
Email: kray at

More information about the Use-livecode mailing list