Closed Bug 1446253 Opened 2 years ago Closed Last year

Make EventUtils.synthesizeComposition() dispatch keydown event which is marked as "processed by IME" in default

Categories

(Core :: DOM: Events, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: inputmethod)

Attachments

(1 file)

We'll start to dispatch "keydown" and "keyup" events during composition. So, when mochitests emulates composition, "keydown" and "keyup" events should be synthesized for checking actual behavior. On the other hand, composition events may be fired without keydown and keyup events if it's caused without keyboard such as voice input or hand writing. So, we still need to provide a way to synthesize composition events without keyboard events though.
Comment on attachment 8959747 [details]
Bug 1446253 - Make EventUtils.synthesizeComposition() dispatch keydown and keyup event in default

https://reviewboard.mozilla.org/r/228594/#review234438

The flags are a bit confusing, but I don't have better ideas.
Attachment #8959747 - Flags: review?(bugs) → review+
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/f035cfad6ac4
Make EventUtils.synthesizeComposition() dispatch keydown and keyup event in default r=smaug
Priority: -- → P2
https://hg.mozilla.org/mozilla-central/rev/f035cfad6ac4
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
See Also: → 1446860
You need to log in before you can comment on or make changes to this bug.