Keyboard Assignment
The keyboard interface of TXTextControl moves the caret, edits and deletes text and inserts page breaks, column breaks, hyphens and non-breaking spaces. The table lists each key or key combination and what the control does in response.
Keys
| Key | What TXTextControl does |
|---|---|
| HOME | Moves the caret to the beginning of the line. |
| END | Moves the caret to the end of the line. |
| Left Arrow | Moves the caret one character to the left. |
| Right Arrow | Moves the caret one character to the right. |
| Up Arrow | Moves the caret one line up. |
| Down Arrow | Moves the caret one line down. |
| CTRL + Left Arrow | Moves the caret to the beginning of the current word. |
| CTRL + Right Arrow | Moves the caret to the beginning of the next word. |
| CTRL + HOME | Moves the caret to the start of the text. |
| CTRL + END | Moves the caret to the end of the text. |
| CTRL + ENTER | Inserts a new page. |
| SHIFT + ENTER | Creates a line feed without beginning a new paragraph. |
| CTRL + (-) | Inserts an end-of-line hyphen. |
| DEL | Deletes the selected text. |
| CTRL + X | Copies the selected text to the clipboard and deletes the selection. |
| CTRL + V | Copies the selected text to the clipboard. |
| CTRL + Z | Undoes the last action. |
| CTRL + Y | Restores the last action. |
| CTRL + SHIFT + Spacebar | Inserts a non-breaking space. |
| CTRL + Backspace | Deletes the previous word. |
| SHIFT + Backspace | Deletes the previous word. |
| CTRL + SHIFT + ENTER | Inserts a page column break. |
Extend the Selection
Pressing a key while SHIFT is pressed extends the current selection to the new caret position. SHIFT + END, for example, selects the text from the caret to the end of the line.