Field modified function?

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


On 9/16/06 1:38 AM, "Josh Mellicker" <josh at dvcreators.net> 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: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list