That's been an issue on Macs forever. If you're in a field and then click a button, the field doesn't lose focus so no closeField is sent. I believe the way to get round it is to "focus on nothing" in the mouseUp code of the button (or the mouseDown).
Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> On Sun, Aug 24, 2014 at 9:45 AM, Graham Samuel <[email protected]> wrote: > I think the bug is still there: I just created a stack with one button and > one field. I can edit the field and then immediately click the button, but > the 'closeField' doesn't fire unless I make it do so explicitly, for > example with a 'returnInField' handler, or if the whole stack loses focus > and then gets it back. > > So I plan to report it. > > Thanks for the confirmation that it is indeed a bug. > > Graham > > On 23 Aug 2014, at 23:22, J. Landman Gay <[email protected]> wrote: > > > On 8/23/2014, 3:02 PM, Graham Samuel wrote: > >> It is quite possible for him (her) not to close the last revised > >> field, but simply to go straight to clicking the button. This means > >> that I can't rely on a 'closeField' message being generated even when > >> a field is modified! > > > > Hm, that's an old bug that I thought got fixed. I remember a while back > noticing that a closefield was sent. If it's broken again, consider putting > in a bug report on it. > > > > If I remember right, I used to do this in the button: > > > > if the selectedfield <> "" then send "closefield" to the selectedfield > > > > but it was a long time ago. > > > > -- > > Jacqueline Landman Gay | [email protected] > > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > > use-livecode mailing list > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
