[Webkit-unassigned] [Bug 170370] New: Composition events are never fired in Sogou IME

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 31 17:02:45 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170370

            Bug ID: 170370
           Summary: Composition events are never fired in Sogou IME
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bdakin at apple.com
                CC: ap at webkit.org, bdakin at apple.com,
                    charleyroy at google.com, dbates at webkit.org,
                    rniwa at webkit.org, ssaviano at google.com,
                    webkit-bug-importer at group.apple.com,
                    webkit-unassigned at lists.webkit.org,
                    wenson_hsieh at apple.com
        Depends on: 169209
            Blocks: 170368, 170369

This clone represents this action item: Composition events are never fired in Sogou IME

+++ This bug was initially created as a clone of Bug #169209 +++

I tested this on:

* Safari Technology Preview Release 23 (Safari 10.2, WebKit 12604.1.5)
* Safari Version 10.0.3 (12602.4.8)

I am using the Sogou IME (http://pinyin.sogou.com/mac/).

I am using this JS fiddle to log events, but any event logger will show this: https://jsfiddle.net/c1g6rahm/2/

In a content editable, press a punctuation character (eg. the key '.' to get '。', ',' to get ',', 'Shift+1' to get '!' - notice they are full width).

Obtained event trace:
1. textInput
2. input
3. keydown - 229 (WIN_IME key)
4. keyup - 188 (in this case I pressed ',')

This is problematic for a number of reasons:
1. There is no compositionstart/compositionupdate/composition end events, which there should be when using keydown WIN_IME
2. The textInput/input events are not between keydown/keyup, which they should be (they are when pressing regular ASCII/latin characters)
3. There is no keypress event fired. For example, Chrome fires a keypress with keycode 65292 for ',' and with keycode 12290 for '。'

The combination of these make it very hard to detect that these specific characters were selected without relying on the contents of the contenteditable. This also diverges from the spec at https://w3c.github.io/uievents/#events-composition-key-events.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=169209
[Bug 169209] keyCodes of the keydown and keyup events do not match in Sogou IME
https://bugs.webkit.org/show_bug.cgi?id=170368
[Bug 170368] The keypress event is never fired in Sogou IME
https://bugs.webkit.org/show_bug.cgi?id=170369
[Bug 170369] Input events precede keydown/keyup in Sogou IME
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170401/195f9038/attachment.html>


More information about the webkit-unassigned mailing list