MozillaZine

Bidi.edit.caret movement style

From MozillaZine Knowledge Base

Contents

Background

When moving the caret in text that includes both left-to-right and right-to-left languages, Shift+Right Arrow and Shift+Left Arrow may exhibit counterintuitive behavior at intersections of LTR and RTL text. For example: selecting English text using Shift+Right Arrow and coming across Farsi will result in all the contiguous Farsi text being selected at once except the last character. This preference attempts to bring more flexibility to caret movement in bidirectional text, allowing Mozilla to match platform-specific behavior.

Possible values and their effects

0

Use logical caret movement always (move between next and previous character as they would be read in the text)

1

Use visual caret movement always (move between next and previous character as they appear in relation to one another on screen)

2

Use visual caret movement, but logical when selecting text (Default)

First checked in

2006-04-08 by Uri Bernstein

Has an effect in

  • Mozilla Firefox (trunk builds after 2006-04-08)
  • SeaMonkey (trunk builds after 2006-04-08)

Related bugs