Hi,
No, it's not a bug.
It happens because you have asked the 'enter' key to do two different things in your project and they are conflicting.
1. you want the 'enter' key to save the telephone number directly into the grid
2. you also want the 'enter' key to save 'name' and 'sname' and close 'frmcreate'.
This is because you have defined frmcreate.button1 as the 'default' button (see the screenshot in the attachment), so whenever 'enter' is clicked, the action associated with that 'default' button is executed. And the 'default' button takes priority.
To stop this conflict, the easiest thing is to remove the check mark from the 'default' property.
However, you could also temporarily disable the 'default' button whenever frmcreate.tablegrid1 is entered with a small script (see the attachment) to allow you to use the 'enter' key in both situations (notice how, when you move the mouse into frmcreate.tablegrid1, frmcreate.button1 is greyed out).
Derek.
Post's attachments EnterButton.zip 465.59 kb, 253 downloads since 2020-04-30