It gets weird if you have an application-wide default close and cancel key. Even with no-action buttons, if you disable the button it passes through to the default behavior for the application. So if you have a dialog with an OK button of type Default Button which should only enable in certain cases, if you don't either write an event handler or write a lot of code and show/hide invisible buttons, that enter key will dismiss the form no matter what the state of the button is.
It would be great if you could override that for specific forms. In a big old application that was developed with Enter/Cmd+. set decades ago as the application default it's very difficult to clear these without retesting every single form. -- Jeffrey Kain [email protected] > On May 20, 2018, at 7:46 PM, Alan Chan via 4D_Tech <[email protected]> > wrote: > > Would setting the Standard Action to No Action be OK in button properties? > > Then add a method in button to do whatever you like. ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

