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

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: travil@microsoft.com
          Reporter: masayuki@d-toybox.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

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.

Received on Monday, 25 November 2013 09:40:40 UTC