Tim, Maybe this is what you need to do ... I believe that if you do not assign the Enter key to something (eg a button) then it will by default act as the Accept button. If you want to intercept the Enter key and stop it from having any effect, then you need to assign it to an invisible button with no action. IE don't disable that button, it just doesn't do anything.
HTH Pat On Mon, 10 Jun 2019 at 20:06, Tim Nevels via 4D_Tech <[email protected]> wrote: > On Jun 10, 2019, at 2:00 PM, Chuck M wrote: > > > Environment Mac client, 4D version 16.5 built client server and 4D > standalone > > > > I have an invisible button with Enter as a shortcut. If I disable the > button and even if I make it invisible and then Hit enter key, the button > code does not run (This is expected), but the validate code in the on > validate event on form method does run (This is NOT expected). What simply > stupid thing am I missing here. > > > > This is Chuck M sending email from a client email as I have not access > to email from here > > I would check “Shortcuts” in Database Settings -> Structure Settings -> > Interface -> Shortcuts area. What shortcut does “Accept input form:” have? > I’ll bet it is “Enter”. Remove that shortcut and that should solve your > issue. > > I remove all 3 of these shortcuts for all my 4D applications. This is > really a very, very old legacy feature that 4D had. I prefer to control how > the Enter and Esc keys do when a form is displayed. > > Tim > > ***************************************** > Tim Nevels > Innovative Solutions > 785-749-3444 > [email protected] > ***************************************** > > ********************************************************************** > 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] > ********************************************************************** -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 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] **********************************************************************

