# Keyboard shortcuts in the editor

This short text describes key behavior in the editor pane. The term "Move to inside segment" means, that the cursor moves to the beginning of the segment if it was previously before the segment, and to the end of the segment if it was previously after it.

Key behavior in the editor

Key combination | Action
--- | ---
Left: | one char left, but not further than the beginning of segment
Right: | one char right, but not further than the end of segment
Ctrl+Left: | one word left, but not further than the beginning of segment
Ctrl+Right: | one word right, but not further than the end of segment
PgUp: | page up through the document
PgDn: | page down through the document
Home* | move to the beginning of the line in the segment
End* | move to the end of the line in the segment
Ctrl+Home | move to the start of the segment
Ctrl+End | move to the end of the segment
Ctrl+PgUp | move to the first segment of the document (Mac: Cmd+PgUp)
Ctrl+PgDn | move to the last segment of the document (Mac: Cmd+PgDn)
Backspace* | remove char before cursor
Delete* | remove char after cursor
Ctrl+Backspace | remove chars up to the start of the current word (Mac: Alt+Backspace)
Ctrl+Delete | remove chars up to the start of next word (Mac: Alt+Delete)
Ctrl+Enter | open previous segment (Mac: Cmd+Enter)
Ctrl+A | select complete segment (Mac: Cmd+A)
Ctrl+Shift+O | RTL-LTR switch
Ctrl+Space | open Auto-completer dialog box with contextual suggestions (Mac: Esc). Once Auto-completer is open, use Ctrl+Space again to switch successively from Glossaries entries, Auto-text entries, Missing tags and Character table options.

* These keys behave differently when the cursor is outside the editable segment:

- Home: cursor to the beginning of the active segment

- End: cursor to the end of the active segment

- Backspace: nothing

- Delete: nothing

- Any char key, if clicked outside editable segment, will be ignored.

The "Shift" key doesn't exhibit any special behavior per se: when the "Shift" key is pressed, all keys move the cursor in their usual manner, except in the case of the `Shift+Enter` combination, that inserts a line break into the text.

System-wide commands Select All (Ctrl+A), Paste (Ctrl+V), Cut (Ctrl+X), copy (Ctrl+C), Insert Match or Selection (Ctrl+I) and Insert source (Ctrl+Shift+I) act in principle on the text within the currently open segment only.

It is possible to move from one pane to another (for instance, from the Editor to the Fuzzy Matches pane) using Ctrl+Tab. Ctrl+Shift+Tab moves back to the previous pane. The shortcuts Ctrl+A and Ctrl+C work in panes, allowing to copy all or some of the information to the clipboard.

Note that you can reassign the shortcuts to your own preferences. See Appendix ShortCut Customization