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.

ActionMacWindows and Linux
Search diagrams, elements and commands⌘ KCtrl K
Go to a diagram⌘ PCtrl P
Go to an element⇧ ⌘ OShift Ctrl O
Show or hide the sidebar⌘ BCtrl B
Show or hide the code (Flowmark, sequence code, schema code or Mermaid)⌘ \Ctrl \
Show or hide the Problems panel⌘ JCtrl J
Open the assistant and focus its message box⌘ ICtrl I
Show or hide the assistant⌥ ⌘ BAlt Ctrl B
Show or hide the Properties panel⌥ ⌘ PAlt 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⇧ ⌘ EShift Ctrl E
Undo, when you aren't typing in a field⌘ ZCtrl Z
Redo, when you aren't typing in a field⇧ ⌘ ZShift Ctrl Z
Close a panel that's open over your workEscEsc

⌘ 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

ActionMacWindows and Linux
Move through the results↑ ↓↑ ↓
Open or run the highlighted result↵Enter
CloseEscEsc

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.

ActionMacWindows and Linux
Undo⌘ ZCtrl Z
Redo⇧ ⌘ Z or ⌘ YShift Ctrl Z or Ctrl Y
Fit the diagram to the view⌘ 0Ctrl 0
Zoom in+ or =+ or =
Zoom out--
Select everything⌘ ACtrl A
Ask the assistant about the selection, when AI is on in your org⌘ LCtrl L
Comment on the selectionMM
Trace from the selection, or stop tracing⇧ TShift T
Walk through from the selection or the start, or stop (not in an ER diagram)⇧ WShift W
While walking through: next move, back, start again→ ← Home→ ← Home
While walking through: pick a way at a decision1 to 91 to 9
Open the diagram the selected element links to⌘ EnterCtrl Enter
Rename the selected element↵ or F2Enter or F2
Delete the selection⌫ or ⌦Backspace or Delete
Open More, everything you can do to the selection..
Open the menu for the selection⇧ F10Shift F10 or the Menu key
Cancel a drag or placing, close a menu, stop tracing, or clear the selectionEscEsc

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.

ActionMacWindows and Linux
Go to the next or previous button→ ←→ ←
Go to the first or last buttonHome 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)EscEsc

With the mouse or trackpad

ActionMacWindows and Linux
Add to or remove from the selection⇧ or ⌘ and clickShift or Ctrl and click
Select an areaDrag empty canvasDrag empty canvas
Add an area to the selection⇧ or ⌘ and drag empty canvasShift or Ctrl and drag empty canvas
Rename an element, or edit a noteDouble-click itDouble-click it
Open the menu for what's under the pointerRight-click, or long-press on a touch screenRight-click, or long-press on a touch screen
Select an area on a touch screenLong-press empty canvas, Select an area, then dragLong-press empty canvas, Select an area, then drag
ZoomPinch, or ⌘ and scrollPinch, or Ctrl and scroll
PanScroll, hold Space and drag, or drag with the middle buttonScroll, 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.

ActionMacWindows 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 stepT U G P I ET U G P I E
Open the add menu for the selected stepAA
Connect the selected step to anotherCC
Change the selected step's typeRR
Add a laneLL
Add an outside poolOO
Add a data object (on the selected step)DD
Add a note on its ownNN
Group the selected steps⌘ GCtrl G
Copy, cut or paste steps⌘ C, ⌘ X, ⌘ VCtrl C, Ctrl X, Ctrl V
Duplicate the selection⌘ DCtrl D
Move the selected lane up or down⌥ ↑ ↓Alt ↑ ↓

With the mouse:

ActionMacWindows and Linux
Add a step at a pointDouble-click empty canvasDouble-click empty canvas
Add after a step, or connect itDrag its + handleDrag its + handle
Move a step into an arrow or a laneDrag it thereDrag it there

In a sequence diagram

These add to the canvas keys above on a sequence diagram.

ActionMacWindows and Linux
Add a participant, actor or databaseP A DP A D
Add a message or a note after the selectionS NS N
Put a box round the selected participantsBB
Add a reply to the selected messageRR
Wrap the selected messages in a fragmentFF
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 keyAlt 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:

ActionMacWindows and Linux
Draw a messagePoint at a lifeline and drag its + to another lifelinePoint at a lifeline and drag its + to another lifeline
Change who sends or receives a messageSelect it and drag an end to another lifelineSelect it and drag an end to another lifeline
Move a participant, message, note or fragment in the orderDrag itDrag it

In an ER diagram

These add to the canvas keys above on an ER diagram.

ActionMacWindows and Linux
Add a table, or a column to the selected tableT CT C
Add an enum or a noteE NE N
Group the selected tablesGG
Mark the selected column as a key, or unmark it. With several columns of one table selected, make them its key together.KK
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.

ActionMacWindows and Linux
Add a process, decision or start or endP D EP D E
Add an input or output, or a subroutineI UI U
Add a database or a documentB OB O
Put a frame round the selection, or add an empty frameFF
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 orderThe other two arrow keysThe other two arrow keys

With the mouse:

ActionMacWindows and Linux
Draw an arrowPoint at a shape and drag a side handle to another shape or a framePoint at a shape and drag a side handle to another shape or a frame
Add a step joined to a shapeDrag a side handle to empty canvasDrag a side handle to empty canvas
Move a shape or a frameDrag itDrag it

While renaming

This applies to renaming on the canvas and to the diagram's name at the top left.

ActionMacWindows and Linux
Save the name↵Enter
CancelEscEsc

When you rename on the canvas, these style the selected text:

ActionMacWindows and Linux
Make the selected text bold⌘ BCtrl B
Make the selected text italic⌘ ICtrl I
Make the selected text code⌘ ECtrl 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

ActionMacWindows and Linux
Send, or queue a message while the assistant works↵Enter
New line⇧ ↵Shift Enter
Stop the assistant while it worksEscEsc
Cancel a plan that waits for youEscEsc
Remove the last element chip, in an empty box⌫Backspace

When the @ or / list is open:

ActionMacWindows and Linux
Move through the list↑ ↓↑ ↓
Pick the highlighted item↵ or ⇥Enter or Tab
Close the listEscEsc

In a comment

ActionMacWindows and Linux
Post the comment or reply⌘ ↵Ctrl Enter
CancelEscEsc

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.

ActionMacWindows and Linux
Search the text⌘ FCtrl F
Undo⌘ ZCtrl Z
Redo⇧ ⌘ Z or ⌘ YShift Ctrl Z or Ctrl Y
Ask the assistant, when AI is on in your org⌘ ICtrl I

Between panels

You can move the gap between two panels from the keyboard too. Tab to it, then:

ActionMacWindows and Linux
Resize a little← →, or ↑ ↓ above the Problems panel← →, or ↑ ↓ above the Problems panel
Resize more⇧ and an arrow keyShift and an arrow key
Smallest or largest sizeHome or EndHome or End
Close the panel↵Enter

Double-clicking a gap puts the panel back to its usual size.

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.

On this page