Closed Bug 299527 Opened 14 years ago Closed 14 years ago

BiDi: In an RTL textarea, pressing DownArrow moves the caret to the end of the text (in lines that end with an RTL character)

Categories

(Core :: Layout: Text and Fonts, defect, major)

defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: bugzillamozilla, Assigned: uriber)

References

Details

(Keywords: rtl)

Attachments

(1 file)

To reproduce:

1. In the first textarea, put the caret in the first line, then press End.
2. Press the DownArrow key.

Actual Results:  
The caret moves to the end of the text (line #4)

Expected Results:
The caret should move to the end of line #2

The opposite happens if you put the caret after the last letter (line #3) and
press the UpArrow key - the caret moves all the way up, instead of to the end of
line #2.

- The bug doesn't happen if the line ends with an LTR character (e.g. a Latin
character)
- The bug doesn't happen in LTR textareas

Tested with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050702 Firefox/1.0+

I first reported this problem in Bug 207186, comment #2

Prog.
Attached file Testcase C
The patch for bug 277553 fixes this problem as well.
Depends on: 277553
Summary: In an RTL textarea, pressing DownArrow moves the caret to the end of the text (in lines that end with an RTL character) → BiDi: In an RTL textarea, pressing DownArrow moves the caret to the end of the text (in lines that end with an RTL character)
Blocks: 151999
Fixed by the patch for bug 277553. Verified using an hourly build from after the
patch was checked in.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta4
Status: RESOLVED → VERIFIED
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.