TX Text Control implements some keyboard shortcuts by default. For example: Pressing CTRL + ENTER inserts a page break at the current input position. The following table lists these shortcuts and shows how to add these functions programmatically.
Shortcut | Description | Same functionality using the API |
CTRL + ENTER | Forced page break |
Selection.Text = "\f"; |
SHIFT + ENTER | Soft break |
Selection.Text = "\v"; |
ENTER | New Paragraph |
Selection.Text = "\r\n"; |
SHIFT + CTRL + RETURN | Column break |
Selection.Text = ((char)14).ToString(); |
CTRL + X | Cut |
Cut(); |
CTRL + V | Paste |
Paste(); |
CTRL + Z | Undo |
Undo(); |
CTRL + Y | Redo |
Redo(); |
CTRL + I | Insert Tab |
Selection.Text = "\t"; |