Closed
Bug 194774
Opened 22 years ago
Closed 22 years ago
cursor appears to "jump" to beginning of line after hitting backspace
Categories
(Core :: DOM: Editor, defect, P1)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla1.4alpha
People
(Reporter: bugzilla, Assigned: leon.zhang)
References
Details
(Keywords: regression)
Attachments
(1 file)
585 bytes,
patch
|
Brade
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
the cursor appears to "jump" to beginning of line after i hit backspace --it doesn't really move to the beginning of the line, it just appears there. when i type, entry occurs where expected. found using 2003.02.24.0x comm trunk bits. was not a problem with 2003.02.19.0x bits. this is a problem in mail compose and editor windows. not a problem with html textareas (afaict). 1. open a mail compose or editor window. 2. enter a line of text. 3. hit the backspace (or delete on Mac) key. results: watch the cursor jump to the beginning of the line. 4. type some more text. results: fortunately, text is added to the end of the line, where the cursor really is.
sfraser, is this due to the Leon's caret position caching code that was just checked in?
FYI, the caret position caching change I was referring to above, was part of bug 35296.
Same thing happens in mail/news : see bug 194752. Same cause? Dupe?
*** Bug 194752 has been marked as a duplicate of this bug. ***
I can confirm this in html textareas also when IME (Input Method Editor) is turned on. In this case, problem is serious.
Assignee | ||
Comment 8•22 years ago
|
||
When user type backspace, nsCaret::DrawCaret will call nsTextFrame::GetPointFromOffset (mCachedOffsetValid have been set NS_FALSE.) , whose return value is not correct and mCachedFrameOffset is always (0,0).
Comment 9•22 years ago
|
||
Probably a related issue.. I'll open a seperate bug if it is not quite as related as I think. If I try to insert a space at the beginning of a wrapped line the space is correctly placed at the end of the previous line, but the cursor still advances one position. Inserting an additional space will leave the cursor in this position. Text however is inserted at the beginning of the line.
Assignee | ||
Comment 10•22 years ago
|
||
walk around this bug temporarily.
Assignee | ||
Updated•22 years ago
|
Attachment #115492 -
Flags: superreview?(sfraser)
Attachment #115492 -
Flags: review?(sfraser)
Comment 11•22 years ago
|
||
Comment on attachment 115492 [details] [diff] [review] return to original status r=brade
Attachment #115492 -
Flags: review?(sfraser) → review+
Comment 12•22 years ago
|
||
*** Bug 194897 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Attachment #115492 -
Flags: superreview?(sfraser) → superreview+
Comment 13•22 years ago
|
||
I checked in the work-around patch on the TRUNK: mozilla/layout/base/src/nsCaret.cpp revision 1.104 I'm going to reopen bug 35296.
Status: NEW → RESOLVED
Closed: 22 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.4alpha
Comment 14•22 years ago
|
||
*** Bug 194932 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•22 years ago
|
QA Contact: sujay → sairuh
Comment 15•22 years ago
|
||
*** Bug 194906 has been marked as a duplicate of this bug. ***
Comment 16•22 years ago
|
||
*** Bug 195015 has been marked as a duplicate of this bug. ***
Comment 17•22 years ago
|
||
*** Bug 195002 has been marked as a duplicate of this bug. ***
Comment 18•22 years ago
|
||
*** Bug 195171 has been marked as a duplicate of this bug. ***
Comment 19•21 years ago
|
||
*** Bug 195473 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 20•21 years ago
|
||
vrfy'd fixed with 2003.03.03 trunk bits. whew.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•