Open Bug 298150 Opened 20 years ago Updated 4 years ago

Keyboard selection overshoots end of paragraph

Categories

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

x86
Windows XP
defect

Tracking

()

People

(Reporter: raanan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050616 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050616 Firefox/1.0+

When using keyboard selection of text (CTRL+Shift+RightArrow) the selection does
not stop at the last word of a paragraph but continues to select the first word
of the next paragraph if one is present.

CTRL+Shift+LeftArrow goes back one word correctly.

Example: in this text, using CTRL+Shift+RightArrow in selecting (see four lines
above) "is" and then "present." will also select "CTRL+", which is incorrect.

Using CTRL+Shift+LeftArrow while the text above is selected will unselect
"CTRL+", which is correct.

This happens in FF Deer Park Alpha 1 (Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8b2) Gecko/20050618 Firefox/1.0+)

It also happens in TB Composer text area (TB Trunk version 1.0+ of 20050618.)






Reproducible: Always

Steps to Reproduce:
1. write one word on a line. Type Enter to create a new paragraph (once or more,
the problem occurs with any number of newlines) and type a word on the next line.
2. Use CTRL+Shift+RightArrow to select the first word on the first line: both
the word on the first line and the (first) word on the second non-empty line are
selected.
3. CTRL+Shift+LeftArrow will unselect the (first) word on the second line.

Actual Results:  
Forward selection overshoots the intended action. Impossible to directly select
the last word in a paragraph.


Expected Results:  
Selection should have stopped at the end of the paragraph.
confirming: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050618
Status: UNCONFIRMED → NEW
Ever confirmed: true
worksforme with linux suite trunk build 2005061905
Reproducible with Mozilla 1.8b1 but WFM with Mozilla 1.7.8.
is this gone for you?

WFM 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060918 SeaMonkey/1.5a
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Problem not fully solved: selection now stops at end of line, but the next CTRL+Shift+RightArrow will skip all empty lines and select the next word, even if some lines further.

Similarly, CTRL+RightArrow will jump to next word, and ignore all empty lines in between.

Word and many text editors will consider an empty line as a word, and require CTRL+RightArrow for each empty line.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060923 BonEcho/2.0

QA Contact: editor
Assignee: mozeditor → nobody

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.