A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Problem with esc key
Joined: Sep 06, 2005
Dec 21, 2005 05:44:00
I have designed a form.After entering all the values in the form and if i click esc button the form is beingm reset.Can anyone help me out how to disable the esc key.
Thanx in advance,
Joined: Nov 08, 2001
Dec 21, 2005 07:09:00
That is the default property of the escape key on a form. Some people know that and use it so you may be eliminating a feature for some users.
You can try to capture the key and return false.
This link should give you what you need.
I agree. Here's the link:
subject: Problem with esc key
Process key in applet.
Problem handling Esc key press
How to make program quit if user presses ESC key?
Pressing ENTER when Button is selected doesnt fire buttonActionPerformed...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014