Closed
Bug 993234
Opened 11 years ago
Closed 11 years ago
Implement D3E KeyboardEvent.isComposing
Categories
(Core :: DOM: Events, enhancement)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 2 obsolete files)
7.67 KB,
patch
|
Details | Diff | Splinter Review | |
7.28 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-KeyboardEvent-isComposing
> true if the key event occurs as part of a composition session, i.e., after a compositionstart event and before the corresponding compositionend event.
>
> The un-initialized value of this attribute MUST be false.
Assignee | ||
Comment 2•11 years ago
|
||
We can implement this bug very simply.
widget shouldn't set the isComposing value at dispatching key events. Instead of that, EventStateManager::PreHandleEvent() can do it.
Attachment #8403248 -
Flags: review?(bugs)
Assignee | ||
Comment 3•11 years ago
|
||
Currently, dispatching key events during composition causes some assertions. Therefore, this patch adds |SimpleTest.expectAssertions(0, 16)|. Note that on Linux, the assertion doesn't occur. Therefore, it specifies 0-16.
Attachment #8403251 -
Flags: review?(bugs)
Comment 4•11 years ago
|
||
Comment on attachment 8403248 [details] [diff] [review]
part.1 Implement KeyboardEvent.isComposing
I wouldn't add isComposing to the .idl, nor
KeyboardEvent::GetIsComposing.
New stuff can go to .webidl only, unless there is some good reason
to add to .idl too.
So, remove the .idl stuff, r=me
Attachment #8403248 -
Flags: review?(bugs) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8403251 [details] [diff] [review]
part.2 Add tests for KeyboardEvent.isComposing
I'd like to see at least some test for keypress too, at least to check that
it returns sane value, and not some random value for isComposing.
Attachment #8403251 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 6•11 years ago
|
||
Thanks, then, this doesn't need sr.
Attachment #8403248 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Although, keypress event should never be fired during composition even if after bug 354358 is fixed. But it's okay to include the test for something wired case.
Attachment #8403251 -
Attachment is obsolete: true
Attachment #8403773 -
Flags: review?(bugs)
Assignee | ||
Comment 8•11 years ago
|
||
And I hope VK_INSERT will never be handled by our editor...
Updated•11 years ago
|
Attachment #8403773 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/839bf025c534
https://hg.mozilla.org/mozilla-central/rev/d40a8916b7e7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Updated•10 years ago
|
Keywords: dev-doc-needed
Comment 11•10 years ago
|
||
Documented:
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.isComposing
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
and
https://developer.mozilla.org/en-US/Firefox/Releases/31#Interfaces.2FAPIs.2FDOM
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•