Closed Bug 299537 Opened 19 years ago Closed 19 years ago

BiDi: If the caret is at the end of an RTL line, pressing Ctrl+LeftArrow moves it to the first LTR word in the next line (skipping any RTL words in between)

Categories

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

defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: bugzillamozilla, Assigned: uriber)

References

Details

(Keywords: rtl)

1. Open https://bugzilla.mozilla.org/attachment.cgi?id=188105
2. In the RTL textarea, put the caret at the beginning of the fourth word
(before the last Hebrew word in the first line)
3. Press Ctrl+LeftArrow twice.

Actual Result:
The caret skips all the Hebrew words that follow, and is placed at the end of
the sixth word. In this case, it is impossible to use Ctrl+Arrow keys to move
the caret to the beginning of the second line.

Expected result:
The caret should move to the beginning of the fifth word (beginning of the
second line)

This bug is a bit different in the LTR textarea - even without any RTL
characters/words in the text, the caret always skips the fifth word. I'm not
sure if this is BiDi-related. Needs more investigation.

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

First reported in Bug 207186, comment #15

Prog.
Instead of step #2 and #3, you can just put the caret at the end of the first
line  (e.g. by pressing End) and then press Ctrl+LeftArrow once. The result is
the same.

Prog.
This is almost the same as bug 288789, and is fixed by my patch for that bug. 
Status: NEW → ASSIGNED
Depends on: 288789
Fixed by the patch to bug 288789. Verified using an hourly build from after the
patch was applied.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Target Milestone: --- → mozilla1.8beta4
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.