[Bug 26218] New: When .getModifierState("OS") should be true?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26218

            Bug ID: 26218
           Summary: When .getModifierState("OS") should be true?
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM3 Events
          Assignee: travil@microsoft.com
          Reporter: masayuki@d-toybox.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: garykac@google.com, mike@w3.org, www-dom@w3.org

I believe that .getModifierState("OS") should be enabled only when "OS" key
activates a modifier state, strictly.

However, this means that .getModifierState("OS") can be true only on Windows
since "OSLeft" and "OSRight" are typically "Super" (or "Hyper") on Linux (I
confirmed this mapping on Ubuntu 14.04 and Fedora 20).

Therefore, even if Linux users use PC keyboard, pressing "OSLeft" or "OSRight"
key activates only "Super" modifier. I.e., .getModifierState("OS") is false on
Linux and .getModifierState("Super") is true.


Firefox's Linux widget module owner concerned about this difference between
Linux and Windows. If web application developers check .getModifierState("OS")
and test it only on Windows, Linux users who are minority than Windows users
cannot use such application like Windows users.

So, if we take a hack for this issue, it might be better to activate "OS"
virtual modifier state on Linux when "Super" modifier is activated.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1023067

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 27 June 2014 05:56:42 UTC