This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23911 - [Proposal] Add KeyboardEvent.isComposing attribute
Summary: [Proposal] Add KeyboardEvent.isComposing attribute
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25287
  Show dependency treegraph
 
Reported: 2013-11-25 09:40 UTC by Masayuki Nakano
Modified: 2014-04-08 02:47 UTC (History)
3 users (show)

See Also:


Attachments

Description Masayuki Nakano 2013-11-25 09:40:33 UTC
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
Comment 1 Gary Kacmarcik 2014-04-07 18:37:22 UTC
Fixed in latest ED.

Section 5.2.7.5 "Key Events During Composition" has also been updated with info about isComposing.