macOS: `compositionstart` and `compositionend` events both triggered _after_ composing accented latin character
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P5)
Tracking
()
People
(Reporter: danburzo, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: inputmethod)
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•5 years ago
|
||
Moving all open keyboard/IME handling bugs to DOM: UI Events & Focus Handling component.
Comment 3•4 years ago
|
||
According to bug 1709152, this incompatibility causes not allowing to cancel input from it from beforeinput
event listeners. So, we should fix this.
Comment 4•4 years ago
|
||
Sorry for the spam. I misunderstood this bug report. And I couldn't reproduce this bug at least on Big Sur. Let's mark this as WFM if this is not reproducible on older macOS too.
Updated•4 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
compositionstart
should fire when the Accent Menu is invoked (Step 2).
Ah, this is impossible because Cocoa does not notify us anything of showing the popup.
And currently, we stop dispatching a set of composition events. And the new behavior is exactly same as Chrome. On Sierra, High Sierra and Mojave, you see events in this order at pressing a numeric key:
keydown
for the numeric keykeyup
for the numeric key (withoutkeypress
for the numeric key, this means that this key press didn't insert a character directly)beforeinput
whosedata
is the accented character (this is cancelable)input
whosedata
is the accented character
On Catalina and Big Sur, you see the event order as #1 -> #3 -> #4 -> #2. (I.e., beforeinput
and input
are fired before keyup
).
Ideally, at least the keydown
event's keyCode
should be 229 and key
should be Process
since it's consumed by the native IME. However, only on Safari, the keycode
is set as properly. This could be fixed by bug 1338460 in the future, but I'm not sure whether it's true.
Anyway, this is WONTFIX due to the IME's behavior in the native IME event level.
Updated•3 years ago
|
Description
•