[Bug 23911] New: [Proposal] Add KeyboardEvent.isComposing attribute
| 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.