Many applications include areas for entering and editing text. The Text entry area may be a single line for entering the answer to a question in a DialogBox. However, the Text area can be any length, depending on the needs of the application.
This guide assumes that you are using applications in an English locale, where text is entered horizontally and wraps from one line to the next. In a locale such as Japanese, text is entered vertically and is wrapped from one column to the next. For information on using applications based on other locales, refer to Chapter 4.
Text components use an insertion cursor to indicate where the information that you are typing will be inserted. When a Text component has the input focus, the insertion cursor is indicated by a blinking I-beam cursor (see Figure 3-16).
Figure 24. A Text Component.
To move the Text insertion cursor:
If a Text component has the input focus, you can navigate through the text using the keyboard. The left and right arrows keys move the insertion cursor by a character. The up and down arrow keys move the insertion cursor by a line. Pressing Ctrl and using the left and right arrows navigates by words. Pressing Ctrl and using the up and down arrows navigates by paragraphs. PageUp, PageDown, PageLeft or Ctrl PageUp, and PageRight or Ctrl PageDown move the insertion cursor by pages.
You can use any of the following methods to select Text:
To deselect a region with the mouse, move the pointer anywhere outside of the selected region and click Button 1. If you want to move the insertion cursor without changing the selection, move the pointer to the location where you want to begin typing, hold down Ctrl, and click Button 1.
Text components provide four ways to copy or move text within the same component or from one component to another: clipboard transfer, drag transfer, primary transfer, and quick transfer.
To use clipboard transfer:
To move or copy text using drag transfer:
To use primary transfer:
To move or copy text using quick transfer:
You can cancel an in-progress quick transfer operation by pressing Cancel before releasing Button 2 or by releasing Button 2 outside of the Text component.
Note that which mouse buttons are to be used for text transfer depends on how these buttons have been defined for your mouse. In some cases, Button 1 is used to both select and transfer the text and Button 2 is used to adjust or extend the selection and for primary transfer, and in other cases, Button 1 is used to select the text, and Button 2 is used to transfer it.
You can also select, copy, and move text using the keyboard instead of the mouse. To make a selection, press and hold down Shift and use the various Text navigation keys to highlight the text that you want to select. Release Shift to complete the selection.
Once the selection has been made, any further use of the navigational keys will deselect the region. You can either use the mouse as previously described to copy or move the selection or press Shift F8 to enter add mode. When you are in add mode, you can move the insertion cursor without causing the selection to be deselected. After moving the insertion cursor, press Alt Ctrl Insert to copy the selection. Press Alt Shift Delete to move the selection.
To delete text within a Text component, use BackSpace and Delete. If text is selected, either key will delete the selection. If there is no selected text, BackSpace deletes the character preceeding the cursor and Delete deletes the character following the cursor.