Closed Bug 150759 Opened 23 years ago Closed 23 years ago

Enter should fire onchange for drop-down listbox changed with arrow keys

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: john)

References

()

Details

(Keywords: access, Whiteboard: [FIX])

Attachments

(1 file, 1 obsolete file)

When the user selects an element from a drop-down list using the arrow keys, Mozilla doesn't fire the onchange event until the user leaves the element. This is necessary because web sites often use drop-downs for navigation. But not all keyboard users will think to use the Tab key to fire onchange, so Enter should also work. Enter should fire onchange for the drop-down (if the drop-down selection has changed) and then onsubmit for the form. Testcase from bug 110800: http://bugzilla.mozilla.org/attachment.cgi?id=58494&action=view
Status: NEW → ASSIGNED
Attached patch Patch (obsolete) — Splinter Review
Attached patch Patch v2.0Splinter Review
Better version. This version doesn't fire onChange multiple times if you hit enter multiple times.
Attachment #87233 - Attachment is obsolete: true
Comment on attachment 87238 [details] [diff] [review] Patch v2.0 r=rods
Attachment #87238 - Flags: review+
Keywords: access
Firing onsubmit for enter in a dropdown listbox is bug 104449.
Whiteboard: [FIX]
Attachment #87238 - Flags: superreview+
jkeiser checked this in on 6/13.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy'd fixed (all platforms) using 2002.09.18 comm trunk builds and the test case in comment 0.
Status: RESOLVED → VERIFIED
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: