Closed Bug 155726 Opened 23 years ago Closed 18 years ago

Caret in Wrong Place After Deleting Text in Composition Window

Categories

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

x86
Windows XP
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: mozilla, Assigned: kinmoz)

References

Details

This is very easy to reproduce, but difficult to explain - please bear with me. To reproduce this: 1) Make sure you are set to reply on the bottom. 2) Open Mail/News and select a long message to reply to, and hit the reply button. 3) When the message pops up and the cursor is below the message text ready for text input, hold the SHIFT key down and use the up arrow to highlight a couple of lines. 4) Press the DELETE key. Result: The cursor appears at the end of the line immediately above where you deleted. If you start typing, the text appears on the line below. Expected: The cursor should be in the same position it was when you hit the delete key. <speculation> It behaves as if the CRLF is at the beginning of lines instead of at the end of lines. It seems this way because when you delete a block of text, it appears that the CRLF is deleted also </speculation>
Reassign to editor
Assignee: ducarroz → kin
Component: Composition → Editor: Core
Keywords: mailtrack
Product: MailNews → Browser
QA Contact: esther → sujay
There is all kinds of wackiness with quoted text. Here's another one: 1) Find a message and hit reply. 2) Place the caret at the beginning of any line of quoted text and hit the backspace key to move the line up to the next line. 3) Now hit return. What happens: The caret returns to the next line down, but the text that was to the right of the caret is now two lines down on a line by itself. ----- > text text text text text text text text > text text text text text text text text ^--caret ----- After backspace ----- > text text text text text text text text > text text text text text text text text ^--caret ----- After return ----- > text text text text text text text text ^--caret > text text text text text text text text -----
Blocks: 158464
Priority: -- → P3
Target Milestone: --- → Future
I can't reproduce the original report using TB 2b1-1122, Win2K. Jerry Baker, do you still see this? Comment 2 does behave like that, but only in mail. This is just an extensions of the normal behavior of putting the caret in the middle of a quoted line and hitting Enter -- it opens up a space for you to type the (presumed) response to the text immediately preceding. Similar behavior if you're composing as HTML, but the effects are much more difficult to work around without using Undo.
I haven't seen this in a while.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.