Closed Bug 588456 Opened 15 years ago Closed 15 years ago

IME doesn't commit properly when losing focus on Android

Categories

(Core Graveyard :: Widget: Android, defect)

ARM
Android
defect
Not set
normal

Tracking

(fennec2.0b1+)

RESOLVED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: jchen, Assigned: jchen)

References

Details

(Keywords: inputmethod)

Attachments

(1 file, 1 obsolete file)

When a textbox loses focus on Android, the text is not committed properly. This leads to problems such as decorations (underlines, coloring) staying in the textbox even after focus is lost.
tracking-fennec: --- → ?
Another symptom of this problem is that you move focus from one text field to another, the second text field will receive the commit event and get the text you had intended to enter in the first
tracking-fennec: ? → 2.0b1+
Attached patch Patch v1 (obsolete) — Splinter Review
Patch fixes all previous symptoms. Because we have to commit the composition during ResetInputState, it's easier to just keep a copy of the composition text, rather than to query Java code for it. nsWindow::DispatchEvent is used instead of nsWindow::OnIMEEvent because e10s code calls DispatchEvent directly.
Attachment #467288 - Flags: review?(mwu)
Attached patch Patch v2Splinter Review
Moved input connection reset to GeckoSurfaceView.onCreateInputConnection. No change in functionality.
Attachment #467288 - Attachment is obsolete: true
Attachment #467507 - Flags: review?(mwu)
Attachment #467288 - Flags: review?(mwu)
Comment on attachment 467507 [details] [diff] [review] Patch v2 Looks good!
Attachment #467507 - Flags: review?(mwu) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
This landed on the relbranch, which was almost certainly not what you wanted.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Or maybe it was :-)
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
it should land on both
Blocks: 635857
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: