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

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