Closed Bug 558978 Opened 15 years ago Closed 15 years ago

Looks like composition isn't committed after I clicked

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: inputmethod, regression)

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1.0 (obsolete) — Splinter Review
This is regression of bug 520732. If I use SCIM, the ResetInputState() should still work. However, after bug 520732, the composition is committed by click but the committed string is still selected by IME selection after it's really committed. The cause is nsGtkIMModule::OnEndCompositionNative() dispatches composition end event even when ShouldIgnoreNativeCompositionEvent() returns true. By it, editor ends composition with composing string. And CommitCompositionBy("") which is called by ResetInputState() will be ignored by editor because its composition was already finished by the intentional composition event. And the patch fixes a bug of logging. The code logs composition string which was freed.
Attachment #438662 - Flags: review?(karlt)
Attached patch Patch v1.0Splinter Review
oops, sorry for the spam.
Attachment #438662 - Attachment is obsolete: true
Attachment #438663 - Flags: review?(karlt)
Attachment #438662 - Flags: review?(karlt)
No longer blocks: 558690
Attachment #438663 - Flags: review?(karlt) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: