Closed Bug 711903 Opened 13 years ago Closed 13 years ago

EventUtils.synthesizeKey() shouldn't dispatch keypress event for modifier keys if the type isn't specified

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(2 files)

EventUtils.synthesizeKey() dispatches keydown event, keypress event and keyup event if the event type isn't specified. However, widgets don't dispatch keypress event for modifier keys. Therefore, it shouldn't dispatch it.
These tests should test the unexpected keypress events since some platforms may have the bug.

# Is it better to insert an assertion in XP level code?
Attachment #583072 - Flags: review?(ehsan)
Attachment #583072 - Flags: review?(ehsan) → review+
Attachment #583070 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/9877c56df1a3
https://hg.mozilla.org/mozilla-central/rev/eabdc8f1c344
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Component: Event Handling → 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: