Summary: | KeyboardEvent.getModifierState() should support "CapsLock" modifier | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | andersca, cdumez, commit-queue, darin, sam, webkit | ||||||||||
Priority: | P2 | Keywords: | WebExposed | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
URL: | https://w3c.github.io/uievents/#dom-keyboardevent-getmodifierstate | ||||||||||||
Bug Depends on: | 162855 | ||||||||||||
Bug Blocks: | 162852 | ||||||||||||
Attachments: |
|
Description
Chris Dumez
2016-10-02 15:15:35 PDT
The only one that is missing and that seems to make sense on Mac is capsLock. Created attachment 290734 [details]
Patch
Created attachment 290735 [details]
Patch
Why doesn’t Fn make sense on Mac? A good test case with Fn might be the return key with the "Fn" modifier down. (In reply to comment #4) > Why doesn’t Fn make sense on Mac? As far as I can tell, this is a hardware key, it does not generate an NSEvent. Note that there is no ModifierFlag for Fn key on NSEvent: - https://developer.apple.com/reference/appkit/nsevent/modifier_flags Created attachment 290741 [details]
Patch
Created attachment 290743 [details]
Patch
Comment on attachment 290743 [details] Patch Clearing flags on attachment: 290743 Committed r206828: <http://trac.webkit.org/changeset/206828> All reviewed patches have been landed. Closing bug. |