Closed Bug 279959 Opened 20 years ago Closed 19 years ago

ctrl-RightArrow no longer works right

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 304891

People

(Reporter: david.saslav, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111

Type a line of text into a new email message.

Type a second line like this

Place caret before the "m" of "message" and hit either ctrl-rightArrow or
ctrl-Shift-rightarrow.

Caret should wind up between the "e" and "." of "message." but instead ends up
right before the "a" in the second line. 

Note this bug even reproduces in the "Details" field of this webform!

Reproducible: Always

Steps to Reproduce:
Type a line of text into a new email message.

Type a second line like this

Place caret before the "m" of "message" and hit either ctrl-rightArrow or
ctrl-Shift-rightarrow.

Actual Results:  

Caret ends up right before the "a" in the second line. 


Expected Results:  

Caret should wind up between the "e" and "." of "message."
Also note that ctrl-LeftArrow and ctrl-Shift-LeftArrow have been seen behaving
similarly when caret is placed after the first word of a forwarded email message
while in a reply composer window.  But I can't reproduce this one for some
reason.  But my theory is that there is some  kind of bogus CRLF character that
isn't being recognized by the forward-cursor and backward-cursor parser, even
though it causes a blank line to appear in forwarded messages.
Any chance of narrowing down when this broke, using builds from
http://archive.mozilla.org/ if need be?
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6)
Gecko/20050111
> 
> Caret should wind up between the "e" and "." of "message." but instead ends up
> right before the "a" in the second line. 

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050312] (nightly) (W98SE)

My caret ends up at the end of the first line (after the point).

Can you check v1.8b1 or newer ?
Version: unspecified → Trunk
The bug still exists in 1.8 Beta1 and manifests itself in the following ways:

1) In the Additional Comments multiline field where I am typing right now.
2) In a message composer window where there is only one token on line 1, any
number of blanklines, then a line with multiple tokens, like so:


==========================
Barry:




I need to know blah1 blah2 blah3 blah4
ASAP or we are all sunk
==========================


In the above case, the ctrl-RtArrow behavior takes you from before the "B" of
"Barry" to before the "n" of "need" -- instead of to the end of the first line
after the ":" as it should.

3) Ctrl-Shift-RtArrow takes you from the end of "blah3" above to after the "P"
of "ASAP", highlighting "blah4" + the CRLF + "ASAP" (incorrectly).

David
This bug does not manifest itself in the newly released Mozilla 1.7.8 product,
which I am using to update this bug.


So ctrl-==> from just before "bug." above correctly takes you to column 0 of the
following line.  Two more take you to just before the "S" of "So", and the one
after that takes you to just before the "c" of "ctrl-==>" above.  

So I think this clearly demonstrates we're looking at a 1.8b1 regression of some
kind.

David

*** This bug has been marked as a duplicate of 304891 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.