Welcome! Log In Create A New Profile

Advanced

Disable enter key

Posted by davep.pcs.crosspost 
davep.pcs.crosspost
Disable enter key
May 25, 2012 02:20PM
Hi All

Anyone know how to disable the enter key so the user is forced to hit the "Accept/OK" key before a record is added?

Currently if the user uses "Enter" instead of "Tab" the record is added and the transaction completed.

Many thanks

Dave

Message forwarded from pcsoft.us.windev
Al
Re: Disable enter key
May 25, 2012 02:41PM
Hello Dave

One simple way is to create an enabled but invisible button on the window that traps the return key. When you create the button, make it of type "Validate" as this will then interecpt the Return/Enter key. If there is no code in the click event then nothing happens.

Regards
Al
ICI
Re: Disable enter key
May 25, 2012 03:12PM
Hi

Right click on button, choose Description and Choose option Normal intead Validate.
Now Enter work same like TAB.

1. If you choose Validate (buton type) , ENTER is default for Save instantly
2. Cancel button mean ESC and close window .
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: