W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2014

[Bug 26019] New: No way to initialize modifier states except "Alt", "Control", "Shift" and "Meta" at constructing DOM event with constructor

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 Jun 2014 10:48:33 +0000
To: www-dom@w3.org
Message-ID: <bug-26019-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26019

            Bug ID: 26019
           Summary: No way to initialize modifier states except "Alt",
                    "Control", "Shift" and "Meta" at constructing DOM
                    event with constructor
           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: mike@w3.org, www-dom@w3.org

At creating a DOM event with its constructor, there is no way to initialize
some modifier states which is only retrieved with .getModifierState(). E.g.,
"CapsLock", "NumLock", "ScrollLock", "OS", "AltGrapsh", "Super", "Hyper", etc.

The reason why they *should* not be initializable with constructor, I think
MouseEvent and KeyboardEvent should have .initModifierStates() which can take
space separated modifier key name list as a DOMString.

However, even if D3E spec defines such method, it should do nothing while the
event is being dispatched. And also, if the event is trusted event, it should
never work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 9 June 2014 10:48:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:22 UTC