Closed Bug 37220 Opened 25 years ago Closed 24 years ago

[RFE] Make Escape key reset the form values

Categories

(Core :: Layout: Form Controls, enhancement, P3)

x86
Windows 2000
enhancement

Tracking

()

VERIFIED WONTFIX
Future

People

(Reporter: michal, Assigned: rods)

References

Details

I'm using Mozilla b16-42512 on Win2K. Please make FORMs resetable by pressing ESC (IE has this feature, I hope this would be some minor change in code :); this way I would be able to create image-display windows which could be closed only by hitting ESC: - - - - - <BODY onLoad="document.forms[0].MyResetButton.focus ()" ... > // focus wherever on the FORM <FORM onReset="window.close ()" ... > // resetting by ESC closes the window ... ... ... <INPUT TYPE="Reset" NAME="MyResetButton" VALUE="Reset form"> </FORM> </BODY> - - - - - Bye.. GOOD LUCK.
changing to enhancement
Severity: normal → enhancement
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: ESC ??? → [ENHANCEMENT]ESC ???
Target Milestone: --- → M18
This would make it too easy to accidentally clear a form.
marking as later
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → LATER
QA Contact: ckritzer → bsharma
Updating QA contact.
this already works for single <SELECT>'s, not sure about other controls (or multi<SELECT>'s) reopening and marking Future...
Status: RESOLVED → REOPENED
Resolution: LATER → ---
Summary: [ENHANCEMENT]ESC ??? → [RFE] Make Escape key reset the form values
Target Milestone: M18 → Future
Reporter - a more robust way to make escape close the window would be to use onkeypress, onkeyup, or onkeydown. See http://www.js-examples.com/cgi-local/ex/ex.pl? file=js_event_trap_char_rev2.txt&showWhat=R
QA Contact Update
QA Contact: bsharma → vladimire
Is this only on W2K, or All? Also, this would be a bad idea since some of us hit ESC to stop the page loading (it's instinctive, even if it doesn't work), and thus those on dialups who find themselves filling in forms while a page is stalled (quite often), would end up with dataloss. Maybe alt-ESC for clearing forms would be better?
See also bug 74349, "[rfe] keyboard/menu options to reload page from cache", and bug 36539, "[RFE]Saving focused element in session history". Those enhancements would each help to make reloading a page a fast way to reset forms.
Wontfix. Resetting a form is potentially a very destructive action, and it's easy to hit escape accidentally. I've done it several times in IE.
Status: REOPENED → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → WONTFIX
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.