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)
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: masaki.katakai, Assigned: mozilla)
References
Details
Attachments
(1 file)
882 bytes,
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
Mike--please look at this patch as soon as you finish your current PDT+ bugs.
Assignee: brade → mjudge
Updated•25 years ago
|
Target Milestone: M15
Updated•25 years ago
|
Priority: P3 → P4
hmm looking at it let me set this bug to m16 right now..
Status: NEW → ASSIGNED
Target Milestone: M15 → M16
Comment 7•24 years ago
|
||
comment updated for reminder.
Comment 8•24 years ago
|
||
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
Reporter | ||
Comment 9•24 years ago
|
||
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.
Comment 10•24 years ago
|
||
adding kin to the cc list.
anthonyd
Assignee | ||
Comment 12•24 years ago
|
||
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
Assignee | ||
Comment 13•24 years ago
|
||
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
Reporter | ||
Comment 14•24 years ago
|
||
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.
Assignee | ||
Comment 15•24 years ago
|
||
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
Comment 16•24 years ago
|
||
can someone please mark this bug VERIFIED-FIXED ? thanks.
Comment 17•24 years ago
|
||
ji, can we ask you to look at this? If you can't, let's pass it
on to teruko.
QA Contact: sujay → ji
Reporter | ||
Comment 18•24 years ago
|
||
I've verified this on Linux and Solaris. Can I mark it as VERIFIED?
Comment 19•24 years ago
|
||
someone should test Mac...
ji or teruko--can you test this on Mac?
Comment 20•24 years ago
|
||
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.
Description
•