Keyboard shortcuts
Every keyboard shortcut in Penna, for Mac and for Windows and Linux, in every kind of diagram.
This page lists every keyboard shortcut in Penna, with the Mac keys first. On Windows and Linux, use Ctrl wherever a Mac shortcut uses ⌘, and Alt for ⌥.
Buttons that have a shortcut show it in their tooltip. The shortcuts that work anywhere in the editor follow the key's position, so they work with any keyboard layout.
Anywhere in the editor
These work while the app has focus, including while you type in a field, unless the table says otherwise.
| Action | Mac | Windows and Linux |
|---|---|---|
| Search diagrams, elements and commands | ⌘ K | Ctrl K |
| Go to a diagram | ⌘ P | Ctrl P |
| Go to an element | ⇧ ⌘ O | Shift Ctrl O |
| Show or hide the sidebar | ⌘ B | Ctrl B |
| Show or hide the code (Flowmark, sequence code, schema code or Mermaid) | ⌘ \ | Ctrl \ |
| Show or hide the Problems panel | ⌘ J | Ctrl J |
| Open the assistant and focus its message box | ⌘ I | Ctrl I |
| Show or hide the assistant | ⌥ ⌘ B | Alt Ctrl B |
| Show or hide the Properties panel | ⌥ ⌘ P | Alt Ctrl P |
| Apply the change the assistant proposes | ⌘ ↵ | Ctrl Enter |
| Approve the plan the assistant shows | ⌘ ↵ | Ctrl Enter |
Download the first file for other tools: a .bpmn file, a Mermaid file or PostgreSQL SQL, by kind | ⇧ ⌘ E | Shift Ctrl E |
| Undo, when you aren't typing in a field | ⌘ Z | Ctrl Z |
| Redo, when you aren't typing in a field | ⇧ ⌘ Z | Shift Ctrl Z |
| Close a panel that's open over your work | Esc | Esc |
⌘ S saves nothing, because every change saves on its own. It shows a reminder of that instead.
On a phone, the assistant shortcuts and undo and redo don't apply, because the app is view-only there.
In the search menu
| Action | Mac | Windows and Linux |
|---|---|---|
| Move through the results | ↑ ↓ | ↑ ↓ |
| Open or run the highlighted result | ↵ | Enter |
| Close | Esc | Esc |
On the canvas
These work on every kind of diagram while the canvas has focus. Click an empty part of the canvas first if you've been typing somewhere else. Each kind adds its own keys, in the sections below.
| Action | Mac | Windows and Linux |
|---|---|---|
| Undo | ⌘ Z | Ctrl Z |
| Redo | ⇧ ⌘ Z or ⌘ Y | Shift Ctrl Z or Ctrl Y |
| Fit the diagram to the view | ⌘ 0 | Ctrl 0 |
| Zoom in | + or = | + or = |
| Zoom out | - | - |
| Select everything | ⌘ A | Ctrl A |
| Ask the assistant about the selection, when AI is on in your org | ⌘ L | Ctrl L |
| Comment on the selection | M | M |
| Trace from the selection, or stop tracing | ⇧ T | Shift T |
| Walk through from the selection or the start, or stop (not in an ER diagram) | ⇧ W | Shift W |
| While walking through: next move, back, start again | → ← Home | → ← Home |
| While walking through: pick a way at a decision | 1 to 9 | 1 to 9 |
| Open the diagram the selected element links to | ⌘ Enter | Ctrl Enter |
| Rename the selected element | ↵ or F2 | Enter or F2 |
| Delete the selection | ⌫ or ⌦ | Backspace or Delete |
| Open More, everything you can do to the selection | . | . |
| Open the menu for the selection | ⇧ F10 | Shift F10 or the Menu key |
| Cancel a drag or placing, close a menu, stop tracing, or clear the selection | Esc | Esc |
While the assistant waits for you to apply a change, only zoom, fit and Space to pan work on the canvas.
While the code has a mistake, the canvas shows the last version that worked. You can select and comment, and copy in a process, but not edit.
In a toolbar
The palette, the selection bar and the buttons in the canvas corners are toolbars. Each is one stop for ⇥ (Tab), which comes back to the button you used last. With something selected, ⇥ from the canvas goes to the selection bar.
| Action | Mac | Windows and Linux |
|---|---|---|
| Go to the next or previous button | → ← | → ← |
| Go to the first or last button | Home End (fn ← fn →) | Home End |
| Open a button's menu | ↓, ↵ or Space | ↓, Enter or Space |
| Back to the canvas, keeping the selection (palette and selection bar) | Esc | Esc |
With the mouse or trackpad
| Action | Mac | Windows and Linux |
|---|---|---|
| Add to or remove from the selection | ⇧ or ⌘ and click | Shift or Ctrl and click |
| Select an area | Drag empty canvas | Drag empty canvas |
| Add an area to the selection | ⇧ or ⌘ and drag empty canvas | Shift or Ctrl and drag empty canvas |
| Rename an element, or edit a note | Double-click it | Double-click it |
| Open the menu for what's under the pointer | Right-click, or long-press on a touch screen | Right-click, or long-press on a touch screen |
| Select an area on a touch screen | Long-press empty canvas, Select an area, then drag | Long-press empty canvas, Select an area, then drag |
| Zoom | Pinch, or ⌘ and scroll | Pinch, or Ctrl and scroll |
| Pan | Scroll, hold Space and drag, or drag with the middle button | Scroll, hold Space and drag, or drag with the middle button |
In a process
These add to the canvas keys above on a BPMN process. Copy, paste, duplicate and group work in a process only.
| Action | Mac | Windows and Linux |
|---|---|---|
| Go to the next or previous step | → ← | → ← |
| Go to the branch above or below | ↑ ↓ | ↑ ↓ |
| Add a task, user task, decision, parallel split, timer wait or end event after the selected step | T U G P I E | T U G P I E |
| Open the add menu for the selected step | A | A |
| Connect the selected step to another | C | C |
| Change the selected step's type | R | R |
| Add a lane | L | L |
| Add an outside pool | O | O |
| Add a data object (on the selected step) | D | D |
| Add a note on its own | N | N |
| Group the selected steps | ⌘ G | Ctrl G |
| Copy, cut or paste steps | ⌘ C, ⌘ X, ⌘ V | Ctrl C, Ctrl X, Ctrl V |
| Duplicate the selection | ⌘ D | Ctrl D |
| Move the selected lane up or down | ⌥ ↑ ↓ | Alt ↑ ↓ |
With the mouse:
| Action | Mac | Windows and Linux |
|---|---|---|
| Add a step at a point | Double-click empty canvas | Double-click empty canvas |
| Add after a step, or connect it | Drag its + handle | Drag its + handle |
| Move a step into an arrow or a lane | Drag it there | Drag it there |
In a sequence diagram
These add to the canvas keys above on a sequence diagram.
| Action | Mac | Windows and Linux |
|---|---|---|
| Add a participant, actor or database | P A D | P A D |
| Add a message or a note after the selection | S N | S N |
| Put a box round the selected participants | B | B |
| Add a reply to the selected message | R | R |
| Wrap the selected messages in a fragment | F | F |
| Go to the element above or below | ↑ ↓ | ↑ ↓ |
| Go to the participant to the left or right | ← → | ← → |
| Move the selected participant left or right, or a message, note or fragment up or down | ⌥ and an arrow key | Alt and an arrow key |
In the Wrap in menu that F opens, each fragment has its own letter: A alt, O opt, L loop, P par, B break, C critical and G group.
With the mouse:
| Action | Mac | Windows and Linux |
|---|---|---|
| Draw a message | Point at a lifeline and drag its + to another lifeline | Point at a lifeline and drag its + to another lifeline |
| Change who sends or receives a message | Select it and drag an end to another lifeline | Select it and drag an end to another lifeline |
| Move a participant, message, note or fragment in the order | Drag it | Drag it |
In an ER diagram
These add to the canvas keys above on an ER diagram.
| Action | Mac | Windows and Linux |
|---|---|---|
| Add a table, or a column to the selected table | T C | T C |
| Add an enum or a note | E N | E N |
| Group the selected tables | G | G |
| Mark the selected column as a key, or unmark it. With several columns of one table selected, make them its key together. | K | K |
| Go to the element above or below | ↑ ↓ | ↑ ↓ |
| Go to the table to the left or right | ← → | ← → |
| Move the selected column up or down | ⌥ ↑ ↓ | Alt ↑ ↓ |
In a flowchart
These add to the canvas keys above on a flowchart. A new shape goes after the selected shape, inside the selected frame, or on its own when nothing is selected.
| Action | Mac | Windows and Linux |
|---|---|---|
| Add a process, decision or start or end | P D E | P D E |
| Add an input or output, or a subroutine | I U | I U |
| Add a database or a document | B O | B O |
| Put a frame round the selection, or add an empty frame | F | F |
| Go to the next or previous shape along the flow | ↓ ↑ in a chart that reads down, → ← in one that reads across | ↓ ↑ in a chart that reads down, → ← in one that reads across |
| Go to the next or previous shape in reading order | The other two arrow keys | The other two arrow keys |
With the mouse:
| Action | Mac | Windows and Linux |
|---|---|---|
| Draw an arrow | Point at a shape and drag a side handle to another shape or a frame | Point at a shape and drag a side handle to another shape or a frame |
| Add a step joined to a shape | Drag a side handle to empty canvas | Drag a side handle to empty canvas |
| Move a shape or a frame | Drag it | Drag it |
While renaming
This applies to renaming on the canvas and to the diagram's name at the top left.
| Action | Mac | Windows and Linux |
|---|---|---|
| Save the name | ↵ | Enter |
| Cancel | Esc | Esc |
When you rename on the canvas, these style the selected text:
| Action | Mac | Windows and Linux |
|---|---|---|
| Make the selected text bold | ⌘ B | Ctrl B |
| Make the selected text italic | ⌘ I | Ctrl I |
| Make the selected text code | ⌘ E | Ctrl E |
Pressing a style's keys again takes the style off. See Rename and style text for where styles work.
In the assistant's message box
| Action | Mac | Windows and Linux |
|---|---|---|
| Send, or queue a message while the assistant works | ↵ | Enter |
| New line | ⇧ ↵ | Shift Enter |
| Stop the assistant while it works | Esc | Esc |
| Cancel a plan that waits for you | Esc | Esc |
| Remove the last element chip, in an empty box | ⌫ | Backspace |
When the @ or / list is open:
| Action | Mac | Windows and Linux |
|---|---|---|
| Move through the list | ↑ ↓ | ↑ ↓ |
| Pick the highlighted item | ↵ or ⇥ | Enter or Tab |
| Close the list | Esc | Esc |
In a comment
| Action | Mac | Windows and Linux |
|---|---|---|
| Post the comment or reply | ⌘ ↵ | Ctrl Enter |
| Cancel | Esc | Esc |
In the code pane
The code pane is a text editor with the usual editing keys. Undo and redo there share one history with the canvas and the assistant, so they take back any change to the diagram, not only your typing.
| Action | Mac | Windows and Linux |
|---|---|---|
| Search the text | ⌘ F | Ctrl F |
| Undo | ⌘ Z | Ctrl Z |
| Redo | ⇧ ⌘ Z or ⌘ Y | Shift Ctrl Z or Ctrl Y |
| Ask the assistant, when AI is on in your org | ⌘ I | Ctrl I |
Between panels
You can move the gap between two panels from the keyboard too. Tab to it, then:
| Action | Mac | Windows and Linux |
|---|---|---|
| Resize a little | ← →, or ↑ ↓ above the Problems panel | ← →, or ↑ ↓ above the Problems panel |
| Resize more | ⇧ and an arrow key | Shift and an arrow key |
| Smallest or largest size | Home or End | Home or End |
| Close the panel | ↵ | Enter |
Double-clicking a gap puts the panel back to its usual size.
On a view-only link
People viewing a shared diagram can press ⌘ 0 to fit it to the screen, and + and - to zoom.
There's nothing to select, so dragging anywhere pans, as do scrolling and the middle button. Pinch, or ⌘ and scroll, zooms.
In option switches
In a row of options, such as Theme or Provider in Settings or the View switch above the diagram, ← and → move between the options.