> On 3 Dec 2019, at 21:47, Peter Bozek <peter.bo...@gmail.com> wrote:
> But doing it again, I would go for something simpler. …and that “something simpler” turns out to be Jeremy Roussak’s tip of removing the “Focusable” property from the default button on the form. This is the key to everything, including: 1. The “Focus Object” function returns the object you’re interested in, not the one currently executing the script 2. No need for clumsy “On Getting Focus”, “On Losing Focus” tracking flags 3. The filter field’s behviour can be decoupled from the host form as users expect. It now has its own “Return” key without the host form disappearing from view in front of their faces 4. Any other common “hotkey” actions (such as opening the currently highlighted row in a list) having a “return” key shortcut can continue to work as normal wrapped with a generic exception testing function that works in any form 5. All object’s events can continue to be used as normal without form-specific exceptions Superb ! And the forms all suddenly feel great to use. As intuitive as Google ! 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:4d_tech-unsubscr...@lists.4d.com **********************************************************************