# Keyboard shortcuts

`Cmd` on macOS, `Ctrl` on Linux and Windows.

## Canvas

| Shortcut | Action |
|---|---|
| Drag empty canvas | Pan |
| Scroll / two-finger scroll | Pan |
| Pinch / Ctrl-scroll | Zoom at cursor |
| Double-click empty canvas | Create a node of the last-used kind |
| Drag a node | Move it (snaps to the grid when snap is on) |
| Drag a group | Move it together with all descendants |
| Click a port dot, then a target node | Create an edge |
| <kbd>Escape</kbd> | Cancel an in-progress connection |

## Selection and editing

| Shortcut | Action |
|---|---|
| Click | Select node or edge |
| Shift-click | Add to or remove from the selection |
| Double-click a node | Open the Inspector |
| Double-click a node title | Rename inline |
| Double-click a note card | Edit the note text inline |
| Double-click an edge | Edit the edge label inline |
| <kbd>Delete</kbd> / <kbd>Backspace</kbd> | Delete selection |
| <kbd>Cmd</kbd>+<kbd>Z</kbd> | Undo |
| <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd> or <kbd>Cmd</kbd>+<kbd>Y</kbd> | Redo |

## Operating

| Shortcut | Action |
|---|---|
| <kbd>g</kbd> | Toggle snap-to-grid |
| <kbd>n</kbd> | Toggle natural scroll direction |
| <kbd>Enter</kbd> in optional chat lens | Send the message |
| <kbd>Shift</kbd>+<kbd>Enter</kbd> in optional chat lens | Insert a new line |

## Application

| Shortcut | Action |
|---|---|
| <kbd>Cmd</kbd>+<kbd>=</kbd> / <kbd>Cmd</kbd>+<kbd>-</kbd> | UI scale up / down |
| <kbd>Cmd</kbd>+<kbd>0</kbd> | Reset UI scale |

Shortcuts stay quiet while you are typing in an input field.

Undo/redo cover visual edits. Deleting a node with checks or actions asks for
confirmation and clears visual undo history; operational definitions and executed
commands are not recoverable through Undo. See [workspaces](workspaces.md).
