The canvas

Keyboard shortcuts

Every shortcut the editor responds to. Cmd on macOS is Ctrl on Windows and Linux — the editor accepts either everywhere both are listed.

Canvas

ShortcutAction
Cmd+CCopy the selected element's JSX
Cmd+VPaste after the selection if one exists, or spawn a new canvas element if nothing is selected
Delete / BackspaceDelete selected elements, the state's root included (deleting a state's only top-level element empties the frame); on a selected canvas element, removes the whole element
/ Swap with previous/next sibling in a vertical container
/ Swap with previous/next sibling in a horizontal container
Cmd+GGroup the selected sibling elements into a container (a plain <div> by default, or the component you choose under Frame defaults → Grouping)
Cmd+Shift+GFlex Group — wrap the selection in a flex container (an inline-flex <div> by default)
Cmd+Shift+UUngroup — lift a selected container's children back out and remove it
Shift + clickAdd another element to the selection
Alt / Option + dragCopy while dragging (instead of move) — works across frames, into canvas elements, and onto empty canvas
Double-clickDrill into a container; on a leaf, enter inline text edit

State frames

ShortcutAction
Drag a frame's nameMove the frame. New frames auto-arrange; once you drag one it stays put where you left it
Drag on empty canvasMarquee-select every frame the box touches
Shift / Cmd + click a frame nameAdd or remove that frame from the selection
Drag any selected frame's nameMove the whole selection together
Esc while draggingCancel the move or marquee

Zoom and pan

ShortcutAction
Cmd+=Zoom in
Cmd+-Zoom out
Cmd+0Reset zoom to 100 %
Cmd+1Zoom to fit all state frames
Cmd + scrollZoom at the cursor
Space + dragPan the canvas
Middle-click + dragPan the canvas
Trackpad pinch / two-finger scrollZoom / pan

History

ShortcutAction
Cmd+ZUndo
Cmd+Shift+ZRedo

Text edit and comments

ShortcutAction
TText tool — then click a frame to add text
EnterConfirm inline text edit
EscCancel inline edit, close comment thread, or exit comment placement mode
Cmd+EnterSubmit a comment