---
url: https://docs.puppetflow.com/guide/canvas-shortcuts.md
description: >-
  Complete keyboard and pointer shortcut reference for the Puppetflow nodal
  canvas.
---

::: tip Canvas focus
Keyboard shortcuts act on the active canvas. Most are ignored while you type in an input or text editor, and while a modal is open. Editing shortcuts are unavailable in read-only graphs.
:::

## Create and edit

| Shortcut | Action | Details |
| --- | --- | --- |
| N or A | Add a node | Opens the node picker. A places it at the pointer. When opened from a connection, the node is inserted into that connection. |
| R | Tidy the graph | Arranges selected nodes when possible, otherwise the complete graph, then centers it. |
| M | Activate or deactivate | Toggles deactivation for the selected nodes. |
| E or Enter | Edit selection | Opens the editor for the single selected node or sticky note. |
| Left click ×2 | Edit an item | Double-click a node or sticky note to open its editor. |
| D | Duplicate | Duplicates the selected editable nodes and sticky notes. |
| Delete, Backspace, or X | Delete | Removes the current selection from an editable graph. |

## Select and navigate

| Shortcut | Action | Details |
| --- | --- | --- |
| ⌘/Ctrl + A | Select all | Selects every item in the current canvas, including sticky notes. |
| Left click | Select an item | Selects the clicked node or sticky note. Clicking an already selected item preserves the group selection for dragging. |
| Drag empty canvas | Rectangle select | Selects only items fully enclosed by the rectangle. Sticky notes join the selection only when the rectangle also contains at least one node. |
| → | Select next node | With exactly one node selected, follows its first outgoing connection. |
| ← | Select previous node | With exactly one node selected, follows its first incoming connection. |
| Esc | Clear or close | Closes the active picker, menu, connection, or transform first. Otherwise clears the canvas selection. |
| Right click | Open context menu | An unselected item becomes the selection. Right-clicking a selected item preserves its group; right-clicking empty canvas preserves the current selection. |

## Move, push, and swap

| Shortcut | Action | Details |
| --- | --- | --- |
| Drag selection | Move items | Moves the clicked item or every item in the current selection. Positions snap to the canvas grid, and approaching a canvas edge automatically pans the viewport. |
| G | Move mode | Attaches the selection to the pointer. Move the pointer, then click to confirm. |
| Shift + move | Lock movement axis | Locks movement to the first dominant horizontal or vertical axis. Works during mouse dragging and in G mode. |
| Alt + move | Push nodes | Moves the selection and pushes every node located ahead of it in the movement direction. Sticky notes outside the selection stay in place. Moving in the opposite direction pushes nodes on the opposite side. |
| Alt + Shift + move | Push on one axis | Combines directional pushing with horizontal or vertical axis locking. |
| S | Swap mode | With exactly two editable, single-input/single-output nodes selected, previews their swap. Move the pointer, then click to confirm. |
| Esc | Cancel transform | Restores all original positions while move or swap mode is active. |

### How directional pushing works

Nodes behind the selection stay in place. Nodes ahead move by the same distance as the selection. Sticky notes are never pushed unless they are part of the selection being moved. With multiple selected items, Puppetflow uses the frontmost selected item as the push boundary.

## Clipboard and history

| Shortcut | Action | Details |
| --- | --- | --- |
| ⌘/Ctrl + C | Copy | Copies selected editable items and the connections between them. |
| ⌘/Ctrl + X | Cut | Copies and removes selected editable items. |
| ⌘/Ctrl + V | Paste | Pastes copied items at the last pointer position on the canvas and selects the new items. |
| ⌘/Ctrl + Z | Undo | Reverts the last editable graph operation. |
| ⌘/Ctrl + Shift + Z | Redo | Reapplies the last reverted graph operation. |

## Viewport and zoom

| Gesture | Action | Details |
| --- | --- | --- |
| Mouse wheel / two-finger scroll | Pan | Scrolls the canvas horizontally and vertically. |
| Shift + wheel | Pan horizontally | Converts wheel movement into horizontal canvas movement. |
| ⌘/Ctrl + wheel | Zoom | Zooms around the pointer position. Trackpad pinch gestures use the same behavior. |
| Middle-button drag | Free pan | Moves the viewport in any direction without changing the selection. |
| Click minimap | Jump viewport | Centers the viewport on the clicked minimap position. |
| Drag minimap | Navigate viewport | Continuously moves the viewport through the graph overview. |
| F | Center viewport | Centers the viewport on the graph. |

## Connections and canvas gestures

| Gesture | Action | Details |
| --- | --- | --- |
| Drag from a port to a port | Connect nodes | Creates a connection between compatible input and output ports. |
| Drag from a port to a node | Connect to default input | Dropping on a compatible node uses its default input port. |
| Drag from a port to empty canvas | Continue with a new node | Opens the node picker and connects the chosen node automatically. |
| Hold C + drag empty canvas | Cut connections | Draws a knife path. Every crossed connection is removed when the pointer is released. |
| Drag one node over a connection | Insert into connection | A compatible single-node selection snaps into the highlighted connection when released. |
| Drag sticky-note handles | Resize note | Resizes a selected sticky note from its edges or corners. |

## Pickers, menus, and editors

| Shortcut | Action | Details |
| --- | --- | --- |
| ↑ / ↓ | Navigate node results | Moves through the filtered results while the node picker search is focused. |
| Enter | Add highlighted node | Adds the active node-picker result to the canvas or current connection. |
| ↑ / ↓ or Tab | Navigate a context menu | Cycles through enabled menu actions. Use Shift + Tab to move backward. |
| Home / End | Jump through a context menu | Focuses the first or last enabled menu action. |
| → / ← | Open or close a submenu | Controls the submenu of the currently focused context-menu action. |
| Enter or Space | Run menu action | Activates the focused button or menu item. |
| Esc | Close active UI | Closes the node picker, context menu, node editor, or sticky-note editor before returning focus to the canvas. |

::: warning Modifier order
Start moving first or press the modifier while moving. Releasing Shift returns to free movement. Releasing Alt stops pushing surrounding items.
:::
