GTK+ 1.2 Tutorial
Prev | Chapter 15. Text Widget | Next

# Keyboard Shortcuts

The text widget has a number of pre-installed keyboard shortcuts for common editing, motion and selection functions. These are accessed using Control and Alt key combinations.

In addition to these, holding down the Control key whilst using cursor key movement will move the cursor by words rather than characters. Holding down Shift whilst using cursor movement will extend the selection.

## Motion Shortcuts

- Ctrl-A Beginning of line
- Ctrl-E End of line
- Ctrl-N Next Line
- Ctrl-P Previous Line
- Ctrl-B Backward one character
- Ctrl-F Forward one character
- Alt-B Backward one word
- Alt-F Forward one word

## Editing Shortcuts

- Ctrl-H Delete Backward Character (Backspace)
- Ctrl-D Delete Forward Character (Delete)
- Ctrl-W Delete Backward Word
- Alt-D Delete Forward Word
- Ctrl-K Delete to end of line
- Ctrl-U Delete line

## Selection Shortcuts

- Ctrl-X Cut to clipboard
- Ctrl-C Copy to clipboard
- Ctrl-V Paste from clipboard

Prev | Home | Next
Text Manipulation | Up | A GtkText Example