# Design shortcuts

> Keyboard shortcuts for moving around a Dockito database design and editing it.

The keys follow Figma, DrawSQL and the rest of Dockito. On Windows and Linux, use Ctrl where this page says ⌘.

## Moving round

These work in the viewer and the editor.

| Keys | |
|---|---|
| Space + drag | Pan |
| Scroll, or two fingers | Pan; Shift + scroll pans sideways |
| Pinch, or ⌘ + scroll | Zoom |
| ⌘ + `=` / ⌘ + `-` | Zoom in / out |
| ⌘ + `0`, or Shift + `1` | Fit the whole design |
| Shift + `2` | Fit the picked table |
| `.` | Focus the picked table and the tables it joins; again to leave |
| Shift + click a second table | The shortest join path between the two |
| ⌘ + `F`, or `/` | Find a table, column or note; Enter for the next, Shift + Enter the one before |
| Esc | Leave the focus or path, then clear the pick |

## Editing

| Keys | |
|---|---|
| `T` | Add a table |
| `N` | Add a sticky note |
| Enter | Rename what's picked |
| Delete or Backspace | Delete what's picked |
| Arrows | Move what's picked a grid step; Shift moves ten |
| ⌘ + `D` | Duplicate |
| ⌘ + `G` / ⌘ + Shift + `G` | Put in a group / take out of it |
| ⌘ + `A` | Pick everything |
| ⌘ + `C`, `X`, `V` | Copy, cut, paste, as DBML |
| ⌘ + `Z` | Undo |
| ⌘ + Shift + `Z`, or ⌘ + `Y` | Redo |
| ⌘ + `S` | Save now |
| Esc | Clear the pick |

## In a table's panel

| Keys | |
|---|---|
| Enter in a column's name | Go to the next column; on the last one, add a column |
| Alt + ↑ / ↓ | Move the column up or down |
| Esc | Leave the field without keeping the change |
