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.
- 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
- 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
- Ctrl-X Cut to clipboard
- Ctrl-C Copy to clipboard
- Ctrl-V Paste from clipboard