[Webkit-unassigned] [Bug 185971] New: E.g., Ctrl + A shouldn't fire keypress event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 19:58:14 PDT 2018


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

            Bug ID: 185971
           Summary: E.g., Ctrl + A shouldn't fire keypress event
           Product: WebKit
           Version: Safari 11
          Hardware: Unspecified
               URL: https://w3c.github.io/uievents/tools/key-event-viewer.
                    html
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: masayuki at d-toybox.com

1. Go to https://w3c.github.io/uievents/tools/key-event-viewer.html
2. Move focus to the <input>
3. Type control + A
4. Type control + option + A
5. Check the "Read only" checkbox
6. Type control + A
7. Type control + option + A

Expected Result:
At #3, #4, #6, #7, keypress events won't be fired since keypress events should be fired "f and only if that key normally produces a character value".
https://www.w3.org/TR/uievents/#event-type-keypress

Actual Result:
#3 does not fire keypress event (as expected)
#4 fires keypress event whose charCode is 1 (invalid)
#6 fires keypress event whose charCode is 1 (invalid)
#7 fires keypress event whose charCode is 1 (invalid)

Firefox will stop dispatching those keypress events.

Chromium also has same bug.

And I found bug 28409 which requests to dispatch keypress events for such non-printable key combinations, but this is clearly invalid for the latest UI Events.

-- 
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/20180525/eeee5049/attachment.html>


More information about the webkit-unassigned mailing list