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

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.