Field modified function?

Josh Mellicker josh at dvcreators.net
Sun Sep 17 20:36:01 CDT 2006


Wow... so "select empty" removes focus from all controls (forcing a  
closeField if a text field had focus?)

Interesting... would not have thought of this in a million!


On Sep 16, 2006, at 12:04 AM, Ken Ray wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list