A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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.
Pressing ENTER when Button is selected doesnt fire buttonActionPerformed...
How to make program quit if user presses ESC key?
Problem handling Esc key press
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014