Open Bug 104449 Opened 23 years ago Updated 2 years ago

Enter does not submit from all form controls.[form sub]

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

Future

People

(Reporter: tpowellmoz, Unassigned)

References

(Depends on 2 open bugs)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5+) Gecko/20011012 BuildID: 2001101203 After initial fixes for bug 22526, you could press Enter in pretty much any form element and the form would be submitted. This was extremely convenient and consistent. Unfortunately, these initial fixes did not properly send a submit button, so bug 99920 was opened to fix that. It appears that the more recent fix removed (inadvertantly, I hope) the ability to submit from other than text and password fields. In particular, you can no longer submit a form with just select dropdown boxes by pressing Enter. Reproducible: Always Steps to Reproduce: 1. Go to http://slashdot.org 2. Go to a story. For example, here: http://slashdot.org/article.pl?sid=01/09/17/1231204&mode=thread 3. Change the threshold or Threaded box and press Enter. Actual Results: Nothing happens. Expected Results: The form should be submitted when you press Enter. This would give Mozilla consistent support for Enter in form controls. This is a regression from the previous Enter form submit behavior.
reassinging to new owner of form submission
Assignee: rods → alexsavulov
Summary: Enter does not submit from all form controls. → Enter does not submit from all form controls.[form sub]
OS: Windows 2000 → All
Hardware: PC → All
not form submission (looks like ENTER while focus in a combo box does not submit)
Assignee: alexsavulov → aaronl
Component: Form Submission → Keyboard Navigation
QA Contact: vladimire → sairuh
See also bug 111689, "pressing enter in file upload control does not submit form". Controls for which enter should not submit: - Textareas. - Listboxes (except for dropdowns)? Enter is used with ctrl+down and ctrl+up for multiple selection using the keyboard.
Taking. The ones I know of that should submit the form that do not are: - checkboxes - radios - files (bug 111689) - dropdowns that are not dropped down - listboxes The last two may get a separate bug if they turn out to be too hard to do here. textarea *maybe* should submit with ctrl+enter, but I think we should save that shortcut for something else.
Assignee: aaronl → jkeiser
Blocks: 111689
Oh, regarding checkbox and radio button, they *are* submitting, but they are not submitting using the same method as input type=text--they need to do onClick on the first submit button if it exists. We can luckily reuse the function the input type=text does.
Status: NEW → ASSIGNED
*** Bug 173310 has been marked as a duplicate of this bug. ***
Priority: -- → P2
Target Milestone: --- → Future
OK, this will be a tracking bug now :) Setting dependent on bugs for textarea, checkbox/radio, listbox and file upload. listbox needs some discussion.
No longer blocks: 111689
Depends on: 102539, 111689, 190559, 190563
Currently (Firefox 0.8) hitting enter when focus is on a radiobutton or checkbox will submit the form, but without setting the 'successful control'. If you hit enter when on a text field, the name_x and name_y of the first submit control are passed with the form submission, each with value zero. If you hit enter on a radiobutton or checkbox, no submit control name_x and name_y values are passed.
I am surprised that after 7 years, this bug still exists. Even in FF3b3 you cannot submit a form by pressing the enter key if focus is on a select input. Any chance we can get this fixed for FF3?
In FF3b4 I cannot submit on enter at all -- only command-enter. Is this is a separate bug?
Yes.
QA Contact: bugzilla → keyboard.navigation
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Component: Keyboard: Navigation → User events and focus handling

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: john → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.