Closed
Bug 7496
Opened 26 years ago
Closed 26 years ago
pressing return doesn't submit form
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M10
People
(Reporter: mikepinkerton, Assigned: joki)
References
()
Details
Go to yahoo and type something into the search field at the top of the page.
Press return. The Comm4.x behavior is that the form is submitted, and in fact
this even works on MacMozilla, but on windows nothing happens. You have to click
the button to submit the form.
It appears that the return is being filtered out by the native text widget on
win32 (and maybe linux) so that the keypress never gets to Gecko.
Updated•26 years ago
|
Assignee: karnaze → joki
Comment 1•26 years ago
|
||
Reassing to Tom. This use to work. The enter event must be getting caught
somewhere.
| Reporter | ||
Comment 2•26 years ago
|
||
hyatt and i noticed that the keypress is getting caught in the window proc of the
text widget: (nsTextWidget.cpp):
LRESULT CALLBACK nsTextWidget::TextWindowProc(HWND hWnd, UINT msg, WPARAM wParam,
LPARAM lParam)
{
// Filters the "ding" when hitting the return key
if (msg == WM_CHAR) {
long chCharCode = (TCHAR) wParam; // character code
if (chCharCode == 13 || chCharCode == 9) {
return 0L;
}
}
return nsWindow::WindowProc(hWnd, msg, wParam, lParam);
}
This code eats the return entirely. It never makes it out of the native window
proc.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 4•26 years ago
|
||
I believe someone (rod?) fixed this with the gfx stuff.
Pressing Return does submit the from at Yahoo! using the 1999092508 build
(Windows 98).
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•