RESOLVED FIXED 162855
Add support for KeyboardEvent.getModifierState() operation
https://bugs.webkit.org/show_bug.cgi?id=162855
Summary Add support for KeyboardEvent.getModifierState() operation
Chris Dumez
Reported 2016-10-01 20:37:09 PDT
Add support for KeyboardEvent.getModifierState() operation: - https://w3c.github.io/uievents/#dom-keyboardevent-getmodifierstate
Attachments
Patch (7.00 KB, patch)
2016-10-02 12:39 PDT, Chris Dumez
no flags
Chris Rebert
Comment 1 2016-10-01 20:51:20 PDT
*** Bug 40999 has been marked as a duplicate of this bug. ***
Chris Dumez
Comment 2 2016-10-02 12:39:43 PDT
Darin Adler
Comment 3 2016-10-02 14:18:17 PDT
I’m kind of surprised we still had this function sitting around, almost unused but nt quite. Seems like the modifier name is kind of like an enumeration. Surprising that the specification just does it as a string rather than using an enumeration. As a side note, the only existing caller of the getModifierState function, the handleKeyboardSelectionMovement function in EventHandler.cpp, should *not* be using it. It should just be calling the different boolean functions directly.
Chris Dumez
Comment 4 2016-10-02 14:52:11 PDT
Comment on attachment 290473 [details] Patch Clearing flags on attachment: 290473 Committed r206725: <http://trac.webkit.org/changeset/206725>
Chris Dumez
Comment 5 2016-10-02 14:52:16 PDT
All reviewed patches have been landed. Closing bug.
Chris Rebert
Comment 6 2016-10-02 15:07:56 PDT
Is there a follow-up bug for support of the remaining modifiers which are listed as TODO in the commit?
Chris Dumez
Comment 7 2016-10-02 15:11:56 PDT
(In reply to comment #6) > Is there a follow-up bug for support of the remaining modifiers which are > listed as TODO in the commit? Not yet, I'll file one soon.
Note You need to log in before you can comment on or make changes to this bug.