Peter, If your button, with shortcut Return, does not have the “focusable” property checked, calling OBJECT Get pointer(Object with focus) in its script will return the object the cursor was in when the return key was pressed.
Jeremy > On 30 Nov 2019, at 21:58, Peter Jakobsson via 4D_Tech <[email protected]> > wrote: > > Thanks for that input Chip. > > However I don’t see how this can work. How can the invisible button script > know which field the cursor was in last ? (Or which object last had the focus > prior to its own script being executed ?) > > Regards > > Peter ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

