Closed Bug 29065 Opened 25 years ago Closed 24 years ago

IMEText's Decoration isn't updated when losing input focus

Categories

(Core :: DOM: Editor, defect, P4)

Sun
Solaris
defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: masaki.katakai, Assigned: mozilla)

References

Details

Attachments

(1 file)

IMEText's Decoration isn't updated when losing input focus Even when the window does not have an input focus, XIM-server wants to update composing text. It works now, the composing text is rendered. But the text decoration such as SELECTION_IME_SELECTEDRAWTEXT and SELECTION_IME_RAWINPUT isn't effected. It seems that nsTextFrame::PaintUnicodeText() does not render any text decoration (selection) when document of the input field does not have an input focus. In the case, displaySelection = doc->GetDisplaySelection(); returns PR_FALSE and PaintTextDecorations() just draws text as normal decoration. I don't think this behavior is a bug. But when the text decoration sent by NS_TEXT_EVENT from IMEs, the decoration needs to be rendered for IMEs even the window does not have an input focus. patch: A patch for nsEditor.cpp is available in the attachment. I'm not sure it's right fix, but it can solve this problem. If action is kOpInsertIMEText (NS_TEXT_EVENT is sent from IMEs with composed string), call SetDisplaySelection(PR_TRUE) to force PaintUnicodeText() renders text decoration. Please review. background: Candidate window of some XIM-server (kinput2 and Sun's atok12) on UNIX platform grabs an input focus when it maps. After a choice is selected and the candidate window is closed, the input focus will get back to the original input field. During the operation, the window that has original input field does not have the input focus but XIM-server wants to update the composing text. For example, atok invokes the candidate window by space and space. Some candidates are displayed on the Candidate window and the first candidate is reversed to indicate the default candidate. Next space key will move the reverse to the 2nd candidate. At the same time, atok want to change the composing text to the 2nd candidate on the original input field. The composing text should be drawn with SELECTION_IME_... decoration to indicate that the text is being composed. But due to this problem, the text is rendered as normal text (SELECTION_NORMAL). This problem happens on Solaris 8/atok12.
Mike--please look at this patch as soon as you finish your current PDT+ bugs.
Assignee: brade → mjudge
Target Milestone: M15
Priority: P3 → P4
Blocks: 14744
setting to New
Status: UNCONFIRMED → NEW
Ever confirmed: true
hmm looking at it let me set this bug to m16 right now..
Status: NEW → ASSIGNED
Target Milestone: M15 → M16
m17
Target Milestone: M16 → M17
will look at patch now.
Keywords: patch
Target Milestone: M17 → M18
comment updated for reminder.
assigning to anthony to look at the patch, this has been around way too long, let's get this reviewed and back to the owner so they can get it checked in if this reviews well. Anthony, you may want to ping kin for help
Assignee: mjudge → anthonyd
Status: ASSIGNED → NEW
Target Milestone: M18 → M19
http://bugzilla.mozilla.org/show_bug.cgi?id=52416 is similar problem. Now commit string does not work when the field does not have an input focus. Please work with Kin.
adding kin to the cc list. anthonyd
it's going to have to wait until post-rtm
Target Milestone: M19 → Future
Reassigning bug to myself for review and patch of nsEditor.cpp Wll get back in touch with anthonyd@netscape.com when patch is completed and verified that it works.
Assignee: anthonyd → mozilla
The patch that comes with this bug is from february....and does not fit into anything that nsEditor.cpp has become today. I also am not seeing this problem on my Solaris builds. I am leaving open and would like someone to verify that this is no longer a problem and well verify it WORKSFOR ME
Hi Donnie, Thank you for looking into this problem. Yes, actually it seems that this problem does not happen on the current build. I agree this problem will be closed as WORKSFORME. Text decoration is OK, but drawing text and comming text don't work due to http://bugzilla.mozilla.org/show_bug.cgi?id=52416.
Acording to the engineers at Sun and also my testing this bug is not around anymore, so we have verified WORKSFORME so im marking it fixed
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
can someone please mark this bug VERIFIED-FIXED ? thanks.
ji, can we ask you to look at this? If you can't, let's pass it on to teruko.
QA Contact: sujay → ji
I've verified this on Linux and Solaris. Can I mark it as VERIFIED?
someone should test Mac... ji or teruko--can you test this on Mac?
I can't reproduce the problem with Mac 2000103008-mn6 build. Marked it as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: