[Bug 23911] New: [Proposal] Add KeyboardEvent.isComposing attribute

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23911

            Bug ID: 23911
           Summary: [Proposal] Add KeyboardEvent.isComposing attribute
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DOM3 Events
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

This might be better to move UI Events, though.

I'd like to suggest that KeyboardEvent should have .isComposing attribute which
is true if the key event is dispatched between compositionstart and
compositionend. This attribute is useful for handling key events only when
there is no composition.

For example:
                                       isComposing
keydown 's'                            false
compositionstart ''
compositionupdate 's'
beforeinput 's'
DOM change occurs
input 's'
keyup 's'                              true
keydown 'Enter'                        true
beforeinput 's'
DOM change occurs
input 's'
compsitionend 's'
keyup 'Enter'                          false

-- 
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.