Skip to content

Keyboard shortcuts in the drawing editor

The drawing editor (draw.io) on the diagram page has keyboard shortcuts for most things you do often. Most of them are shown next to the items in the Edit, View and Arrange menus; the others are standard draw.io shortcuts. The tables below are grouped by what you are doing. Where the Mac column shows –, look for the shortcut next to the menu item on your Mac, or use the menu. The menus themselves are described in The drawing editor: menus, panels and toolbar.

What you do Windows Mac
Undo Ctrl+Z –
Redo Ctrl+Y –
Cut Ctrl+X –
Copy Ctrl+C –
Paste Ctrl+V –
Delete the selection Delete or Backspace –
Duplicate the selection (in the text editor of a document, Ctrl+D inserts a diagram instead) Ctrl+D Cmd+D
Find/Replace text in the drawing Ctrl+F –
Edit Data… (your own properties on a shape) Ctrl+M Cmd+M
Edit Tooltip… Alt+Shift+T –
Edit Style… Ctrl+E Cmd+E
Edit geometry Ctrl+Shift+M –
Edit connection points Alt+Shift+Q –
Edit Link… Alt+Shift+L –
Lock/Unlock the selection Ctrl+L Cmd+L
Copy the style of a shape Alt+C Option+C
Paste the style on other shapes Alt+V Option+V
Make the style the default for new shapes Ctrl+Shift+D Cmd+Shift+D
Clear Default Style Ctrl+Shift+R Cmd+Shift+R
What you do Windows Mac
Select everything Ctrl+A Cmd+A
Select nothing Ctrl+Shift+A Cmd+Shift+A
Select all shapes Ctrl+Shift+I –
Select all connectors Ctrl+Shift+E –
Select the next or the previous shape Tab / Shift+Tab –
Select a shape inside a group Alt+click –
What you do Windows Mac
To Front Ctrl+Shift+F –
To Back Ctrl+Shift+B –
Group Ctrl+G Cmd+G
Split a group Ctrl+Shift+U Cmd+Shift+U
Rotate a shape 90° or reverse a connector Ctrl+R –
Clear the bends (waypoints) of a connector Alt+Shift+R –
Autosize (fit the shape to its text) Ctrl+Shift+Y Cmd+Shift+Y
Copy the selected shape and connect the copy in the direction of the arrow key Alt+Shift+arrow key Option+Shift+arrow key
Add a library shape connected to the selected shape Alt+click the shape in the left panel –
Add a library shape without your default style Shift+click or Shift+drag from the left panel –
Copy a shape while you drag it Ctrl+drag Cmd+drag
Alt+drag: from the left panel, adds a shape without connecting it; in the drawing, moves or resizes a shape without snapping to the grid, and drops a shape on a lane or container without putting it inside Alt+drag Option+drag
Draw freehand X –
What you do Windows Mac
Zoom in and out Alt+mouse wheel, or Ctrl + and Ctrl - –
Fit Window (fits the selection, if there is one) Ctrl+Shift+H Cmd+Shift+H
Fit Page Ctrl+J –
Reset View Home. Enter with nothing selected switches between Reset View and Fit Window –
Move around the drawing Hold the space bar and drag –
Scroll sideways Shift+mouse wheel –
Show or hide the format panel Ctrl+Shift+P –
Show or hide the shapes panel Ctrl+Shift+K –
Outline Ctrl+Shift+O Cmd+Shift+O
Layers Ctrl+Shift+L Cmd+Shift+L
Tags Ctrl+K –
Grid on or off Ctrl+Shift+G –
Connection Arrows on or off Alt+Shift+A –
Connection Points on or off Alt+Shift+O –
Print… Ctrl+P Cmd+P
What you do Windows Mac
Start editing the text of the selected shape Just start typing, or press F2 or Enter. F2 selects the existing text, so what you type replaces it –
Finish editing and keep the text Ctrl+Enter, or click an empty part of the drawing –
Stop editing and discard the change Escape –
New line in the text Enter –
Paste text without its formatting Ctrl+Shift+V –