A Text component should be used to display and enter text. A Text component must be composed of an area for displaying and entering text. The text can be either a single line or multiple lines. Text must support the range selection model as described in Selection and can support the discontiguous selection model.
The following text describes the navigation actions of this component:
must
move the location cursor up one line. In single-line Text components,
must navigate upward to the previous
component if the Text component is designed to act like a basic
control.
must move the location cursor down one line. In single-line Text
components,
must navigate downward to
the next component if the Text component is designed to act like a
basic control.
must move the location cursor up one page.
must move the location cursor down one page.


must place the
location cursor before the first character that is not a space, tab,
or newline character after the next space, tab, or newline character.
In short single-line Text controls,
can navigate rightward to the next component
if the Text is designed to act like a basic control.
must place the
location cursor after the first space, tab, or newline character
preceding the first previous character that is not a space, tab, or
newline. In short single-line Text controls,
can navigate
leftward to the next component if the Text is designed to act like a
basic control.
can optionally move the location cursor
to the beginning of the next paragraph.
can optionally move the location cursor to
the beginning of the previous paragraph.
must move the location cursor to the
beginning of the file.

must move the location cursor to the end
of the file.
The following text describes the operations of this component:
or
must evoke its normal selection function.
must insert a carriage return.
and
<Enter>
and
must be used
for tabbing (either inserting a tab or moving to the next tab stop).
In single-line Text,
must be used either
for tabbing or to move to the next field. If
is used for tabbing and the location cursor is
at the end of the text,
can optionally
move to the next field.
must be
used to move to the previous field if
is
used to move to the next field. Otherwise,
should be used
for tabbing backward. If
is used for tabbing backward and the location
cursor is at the beginning of the text,
can optionally move to the previous
field.
Modifying
or
with
must evoke the same field navigation function
as
or
.
must delete one character forward.
Otherwise,
must delete the selection.
can delete
the character following the location cursor to the end of the line.
Otherwise,
can delete the selection.
By default, Text components must start in insert mode, where the location cursor is between two characters. In insert mode, typing a character must insert the character at the position of the location cursor. Text components can also implement replace mode, where the location cursor is on a character. In replace mode, typing a character must replace the current character with that newly entered character and move the location cursor to the next character, selecting it. Many of the requirements for a text-like collection in this guide assume that the collection is in insert mode and do not apply in replace mode.
BSelect
Click
2+
BSelect
Motion
2+
BSelect
Click
2+
BSelect
Motion
2+
For more information on Text selection, see the description of the selection models in Selection.