Layout.selection.caret style

From MozillaZine Knowledge Base
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Background

The caret is the blinking line that indicates where text will be entered while typing. Different platforms have a different caret behaviours for when text is selected or when word-deletion is used ("Ctrl-Delete" or "Ctrl-Backspace"). This preference controls the caret selection behaviour and the effects of word deletion on a selection.

Possible values and their effects

0

Choose the appropriate caret selection behaviour for the platform (2 for Mac OS, 1 for others)

1

Pressing left or right will bring the caret one character to the left or right of the end point of the selection. Word deletion deselects the selection and removes the word.

2

Pressing left or right will bring the caret to the left or right edge of the selection. Word deletion deletes the selection.

3

The caret moves and blinks irrespective of the selection. Word deletion deletes the selection.

Previous effects

In the 1.8.1 branch (Firefox 2), this preference did not affect word-delete behaviour. (A value of 3 had no effect.)

First checked in

2005-10-26 by Mats Palmgren.

Has an effect in

  • Firefox (all versions 1.6a1 and later; 2.0a and later)
  • SeaMonkey (all versions 1.0b and later)

Related bugs