This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with esc key Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Problem with esc key" Watch "Problem with esc key" New topic
Author

Problem with esc key

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hai,

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,
Visu N.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
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.
http://www10.brinkster.com/A1ien51/Scripts/KeyCode.htm

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with esc key
 
Similar Threads
Escape key
Process key in applet.
How to make program quit if user presses ESC key?
Problem handling Esc key press
Pressing ENTER when Button is selected doesnt fire buttonActionPerformed...