Closed
Bug 81356
Opened 23 years ago
Closed 23 years ago
Editor needs to call ForceCompositionEnd() for IME at losing input focus
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: masaki.katakai, Assigned: Brade)
References
Details
(Keywords: inputmethod, intl, Whiteboard: [I18n])
Attachments
(1 file, 1 obsolete file)
819 bytes,
patch
|
ftang
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
In nsTextEditorFocusListener::Blur(), editor should call ForceCompositionEnd() if imeEditor exists to inform "focus is leaving from this widget" to IME. IME wants to know the timing by ResetInputState(), then IME has to do reset the state of IME engine, clear the composition text, then call NS_COMPOSITION_END to close the composition event. Yes, I can see nsTextEditorMouseListener::MouseClick() calls ForceCompositionEnd(), but it's not enough because the event happens on destination widget, there is no way to send composition event to *original* widget in ResetInputState().
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
assigning to sfraser for review of patch
Assignee: beppe → sfraser
Priority: -- → P3
Target Milestone: --- → mozilla0.9.1
Reporter | ||
Comment 5•23 years ago
|
||
Thank you very much for review, But can you wait check-in? because I have to verify the patch will not break current ResetInputState() codes of all platforms. I'll ask each platform owner to verify.
r/sr=kin@netscape.com as long as testing has been done to ensure there are no IME related regressions on other platforms.
One other question, some platforms pop up a seperate window when IME is activated will this generate an unexpected Blur()?
Reporter | ||
Comment 8•23 years ago
|
||
Hi Kin, Yes, some of Linux IME invokes separate window to display candidates. I put the codes long ago not to commit at the case (for the original problem that ResetInputState() is called when the window gets focus at dismissing candidate window). I understand Windows IME will not grab any input focus -> it should work But I need to check Mac, and other platforms.
Comment 9•23 years ago
|
||
Is this ready to go in? You have until midnight tomorrow :)
Reporter | ||
Comment 10•23 years ago
|
||
Sorry, I haven't got results on Windows and Mac yet. For safety, should we move to 0.9.2?
Assignee | ||
Comment 12•23 years ago
|
||
it looks ok to me other than missing the space after the "if"
Updated•23 years ago
|
Whiteboard: [I18n]
Comment 13•23 years ago
|
||
Masakai: what's the status on this bug? Have you tested Windows and Mac?
Reporter | ||
Comment 14•23 years ago
|
||
Sorry for late. Ready to check in for 0.9.2. I got no problem from Windows, Mac, UNIX side. (See bug 81360, bug 81365 abd bug 81364)
Reporter | ||
Comment 15•23 years ago
|
||
Sorry again. I found crash problem on Linux with this fix. Please wait until I can provide fix for widget/gtk.
Reporter | ||
Comment 16•23 years ago
|
||
*** Bug 81365 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 17•23 years ago
|
||
*** Bug 81364 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 18•23 years ago
|
||
I blieve this patch itself is correct fix but gtk has a problem of bug 81360. No problems for windows and mac.
Depends on: 81360
Comment 19•23 years ago
|
||
So should this be checked in?
Comment 20•23 years ago
|
||
On second thoughts: reassigning to katakai@japan.sun.com. When this is ready to go, give it back to me.
Assignee: sfraser → katakai
Status: ASSIGNED → NEW
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla1.0
Reporter | ||
Comment 21•23 years ago
|
||
Sorry for slow progress. I finally have fixed the GTK problem (bug 81360). So ready to check in the patch for Editor. Simon, can you take this? Reassigned to Simon.
Assignee: katakai → sfraser
Reporter | ||
Comment 22•23 years ago
|
||
Editor folks, Is it possible to check in after 0.9.5? Thanks.
Assignee | ||
Comment 23•23 years ago
|
||
I'll take this bug from Simon since he isn't doing much editor stuff anymore. I'd like ftang or someone on his team to review this in addition to myself and a super-reviewer.
Assignee: sfraser → brade
Keywords: patch
Comment 24•23 years ago
|
||
Comment on attachment 34920 [details] [diff] [review] sorry, ignore the first attachment, this is correct one. r=ftang
Attachment #34920 -
Flags: review+
Comment 25•23 years ago
|
||
add yokoyama to the cc list. This could also cause the Chinese IME type abc to cba issue. We have another work around for that already in the branch. brade- please ask yokoyama for future IME related review. Katakai know IME code prety well aslo (he and tajima wrote the GTK IME code)
Assignee | ||
Updated•23 years ago
|
Attachment #34918 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla1.0 → mozilla0.9.6
Comment 26•23 years ago
|
||
Comment on attachment 34920 [details] [diff] [review] sorry, ignore the first attachment, this is correct one. sr=sfraser
Attachment #34920 -
Flags: superreview+
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Assignee | ||
Comment 27•23 years ago
|
||
this fix was checked in (revision 1.192)
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 28•23 years ago
|
||
Masaki, please verify this bug when you get chance..let us know if it is fixed. thanks.
Reporter | ||
Comment 29•23 years ago
|
||
Thank you very much. I have verified the fix on 1118 nightlies on both Windows and Linux.
Updated•14 years ago
|
Keywords: inputmethod
You need to log in
before you can comment on or make changes to this bug.
Description
•