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]
**********************************************************************

Reply via email to