[Webkit-unassigned] [Bug 170955] New: Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 18 10:59:38 PDT 2017


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

            Bug ID: 170955
           Summary: Picking an emoji via the emoji dialog (Ctrl+Cmd+Space)
                    fires inconsistent beforeinput events.
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: charleyroy at google.com

To reproduce this, you'll need to use some kind of keyboard event logger (Eg. https://cdn.rawgit.com/w3c/uievents/gh-pages/tools/key-event-viewer.html).

Case 1:
1. Focus on a text field.
2. Open the emoji picker via Ctrl+Cmd+Space.
3. Select an emoji.

Observe that a beforeinput event was fired with the 'insertReplacementText' type and that the emoji picker has become hidden.

Case 2:
1. Focus on a text field
2. Open the emoji picker via Ctrl+Cmd+Space.
3. Move the emoji picker so that it is no longer docked to the text field.
4. Select an emoji.

Observe that a beforeinput event was fired with the 'insertText' type and that the emoji picker has become hidden.

This is inconsistent with the semantics of these event types (as well as native behavior, where inserting an emoji via the picker doesn't replace the text unless there is a selection). These should both be insertText.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170418/cecd5e3b/attachment.html>


More information about the webkit-unassigned mailing list