getModifierState() should support for modifiers:
In particular, we are missing the following ones: CapsLock, Fn, FnLock, Hyper, NumLock, Super, ScrollLock, Symbol, SymbolLock.
The only one that is missing and that seems to make sense on Mac is capsLock.
Created attachment 290734 [details]
Created attachment 290735 [details]
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:
Created attachment 290741 [details]
Created attachment 290743 [details]
Comment on attachment 290743 [details]
Clearing flags on attachment: 290743
Committed r206828: <http://trac.webkit.org/changeset/206828>
All reviewed patches have been landed. Closing bug.