Solaris Common Desktop Environment: User's Guide

Selecting Text

Before using edit commands such as cut and paste, you must select the text. You can select text using the mouse or the keyboard.

To Select Text with the Mouse

  1. Click at the beginning of the text you want to select.

  2. Press and hold mouse button 1 and drag to the end of the text.

    To deselect text, click any area in the window.


    Note -

    To modify a selection you have made, press and hold the Shift key and mouse button 1. Then drag forward or backward to adjust the amount of selected text. Or, hold down the Shift key and one of the arrow keys to change the selection.


You can also use these shortcuts for selecting text:

Word 

Double-click the word 

Line 

Triple-click the line 

All text 

Quadruple-click in the text 

Secondary Selection

This method enables you select text and replace it with another selection, which is used as the replacement text.

To Replace Text Using Secondary Selection

  1. Select the text that you want to replace.

  2. Move the pointer to the beginning of the text you want to replace the first selection with. Hold down the Alt key and mouse button 2 and drag to the end of the text you want to use.

    The text is underlined.


    Note -

    If your keyboard does not have an Alt key, ask your system administrator to identify the corresponding key.


  3. Release the Alt key and mouse button.

    The underlined text overwrites your first selection.

To Select Text with the Keyboard

Text to Select 

Action 

Text block 

Move the cursor to the beginning of the text block. Hold down the Shift key and an arrow key to move the cursor to the end of the text block. 

Cursor to beginning of line 

Shift+Home 

Cursor to end of line 

Shift+End 

Cursor to beginning of paragraph 

Shift+Control+Up Arrow 

Cursor to end of paragraph 

Shift+Control+Down Arrow 

Cursor to beginning of document 

Shift+Control+Home 

Cursor to end of document 

Shift+Control+End 

All text 

Control+/ 

Deselect all text 

Control+\