Thanks all. Problem solved. The closeField is triggered only when the field is changed and the focus is changed to something outside the field.
The only problem is when the next selection is a button (on the Mac at least) the focus remains in the field. The work around, as several pointed out, is either "select empty" or "focus on nothing" in the button scripts. (A bit of a nuisance.) It appears to make no difference whether the traversalOn is true or false for the button, which seems a bit odd. Jim Hurley _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode