Closed Bug 7496 Opened 26 years ago Closed 26 years ago

pressing return doesn't submit form

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

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.
Assignee: karnaze → joki
Reassing to Tom. This use to work. The enter event must be getting caught somewhere.
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.
<Please note bug #7081.>
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I believe someone (rod?) fixed this with the gfx stuff.
Target Milestone: M10
cpratt, can you verify ASAP please.
Status: RESOLVED → VERIFIED
Pressing Return does submit the from at Yahoo! using the 1999092508 build (Windows 98).
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.