Open
Bug 172174
Opened 23 years ago
Updated 3 years ago
some key events are handled by forms but not marked as such
Categories
(Core :: DOM: Events, defect, P5)
Core
DOM: Events
Tracking
()
NEW
People
(Reporter: Brade, Unassigned)
Details
In bug 164481 for Chimera, we had some subtle problems show up because some key
events were not marked as "handled" by forms when they should have been.
Reporter | ||
Comment 1•22 years ago
|
||
Index: mozilla/content/html/content/src/nsHTMLInputElement.cpp
===================================================================
RCS file: /cvsroot/mozilla/content/html/content/src/nsHTMLInputElement.cpp,v
retrieving revision 1.264
diff -u -2 -r1.264 nsHTMLInputElement.cpp
--- mozilla/content/html/content/src/nsHTMLInputElement.cpp 12 Nov 2002
23:03:03 -0000 1.264
+++ mozilla/content/html/content/src/nsHTMLInputElement.cpp 18 Nov 2002 15:15:27
-0000
@@ -1622,4 +1622,7 @@
nsEventStatus status = nsEventStatus_eIgnore;
shell->HandleDOMEventWithTarget(submitControl, &event, &status);
+
+ // treat the current event as submit so consume it
+ *aEventStatus = nsEventStatus_eConsumeNoDefault;
} else if (numTextControlsFound == 1) {
// If there's only one text control, just submit the form
@@ -1631,4 +1634,7 @@
nsEventStatus status = nsEventStatus_eIgnore;
shell->HandleDOMEventWithTarget(form, &event, &status);
+
+ // treat the current event as submit so consume it
+ *aEventStatus = nsEventStatus_eConsumeNoDefault;
}
}
Comment 2•17 years ago
|
||
I'm not sure this is relevant anymore.
Assignee: brade → nobody
Component: Form Manager → DOM: Events
Product: Toolkit → Core
QA Contact: form.manager → events
Version: Trunk → unspecified
Comment 3•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•