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)
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.
| Assignee | ||
Comment 1•25 years ago
|
||
changing to enhancement
Severity: normal → enhancement
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: ESC ??? → [ENHANCEMENT]ESC ???
Target Milestone: --- → M18
Comment 2•25 years ago
|
||
This would make it too easy to accidentally clear a form.
| Assignee | ||
Comment 3•25 years ago
|
||
marking as later
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → LATER
Comment 5•25 years ago
|
||
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
Comment 6•25 years ago
|
||
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
Comment 8•24 years ago
|
||
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?
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
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 ago → 24 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•