BetaTry our live BPMN Workflow EditorSkip to content

Keyboard Shortcuts

🖼️ Keyboard Shortcuts Overview

Visual keyboard showing common shortcuts: Cmd+A (Select All), Delete (Remove), F (Fit View), Cmd+D (Duplicate), arrow keys with Cmd+Shift (Alignment). Each shortcut labeled with its action. Shows platform-aware display (Cmd on macOS, Ctrl on Windows).

Vyuh Node Flow includes built-in keyboard shortcuts for power users. Navigate, select, and manipulate your flow diagrams without touching the mouse.

TIP

Platform-Aware: Shortcuts automatically adapt to your platform, using Cmd on macOS and Ctrl on Windows/Linux.

Available Shortcuts

INFO

Note: The keyboard shortcut system is extensible, but not all features are currently implemented. The shortcuts listed below are the currently available ones.

Selection

ShortcutActionDescription
Cmd/Ctrl + ASelect allSelect all nodes
Cmd/Ctrl + IInvert selectionInvert current selection
EscapeCancel/ClearCancel operation or clear selection

Editing

ShortcutActionDescription
Delete / BackspaceDeleteDelete selected nodes, connections, and annotations
Cmd/Ctrl + DDuplicateDuplicate selected nodes
NToggle snappingToggle grid snapping on/off
EnterEdit nodeEdit selected node (comment text or group title)
ShortcutActionDescription
FFit all to viewFit all nodes in viewport
HFit selectedFit selected nodes in viewport
Cmd/Ctrl + 0Reset zoomReset zoom to 100%
Cmd/Ctrl + =Zoom inIncrease zoom level
Cmd/Ctrl + -Zoom outDecrease zoom level
MToggle minimapShow/hide minimap

Arrangement

ShortcutActionDescription
[Send to backSend selected items to back layer
]Bring to frontBring selected items to front layer
Cmd/Ctrl + [Send backwardSend selected items backward one layer
Cmd/Ctrl + ]Bring forwardBring selected items forward one layer

Alignment

WARNING

Requires 2+ nodes: Alignment shortcuts only work when at least 2 nodes are selected.

ShortcutActionDescription
Cmd/Ctrl + Shift + ↑Align topAlign selected nodes to top edge
Cmd/Ctrl + Shift + ↓Align bottomAlign selected nodes to bottom edge
Cmd/Ctrl + Shift + ←Align leftAlign selected nodes to left edge
Cmd/Ctrl + Shift + →Align rightAlign selected nodes to right edge

Not Yet Implemented

The following features have shortcuts registered but the actions are not yet fully implemented:

  • Copy/Cut/Paste (Cmd/Ctrl + C/X/V) - Clipboard functionality pending
  • Undo/Redo - Not currently available
  • Grouping (Cmd/Ctrl + G) - Create group action pending
  • Ungrouping (Cmd/Ctrl + Shift + G) - Ungroup action pending

How Shortcuts Work

Keyboard shortcuts are automatically enabled and integrated into the NodeFlowEditor. The shortcuts system is built into the NodeFlowController and requires no additional setup.

dart
// Shortcuts work automatically
final controller = NodeFlowController<MyData, dynamic>();

NodeFlowEditor(
  controller: controller,
  nodeBuilder: (context, node) => MyNodeWidget(node),
)

The editor internally wraps your content with NodeFlowKeyboardHandler, which manages all keyboard interactions using Flutter's Actions and Shortcuts system.

INFO

For Developers: To customize shortcuts or create custom actions, see the Shortcuts & Actions API reference.

Viewing Available Shortcuts

You can query available shortcuts programmatically to build your own shortcuts help UI:

dart
// Get all actions grouped by category
final actionsByCategory = controller.shortcuts.getActionsByCategory();

// Get the shortcut for a specific action
final shortcut = controller.shortcuts.getShortcutForAction('fit_to_view');

// Search for actions
final results = controller.shortcuts.searchActions('align');

See the Shortcuts & Actions API for more details on querying and customizing shortcuts.

Best Practices

  1. Discoverability: Show keyboard shortcuts in tooltips and provide a shortcuts dialog
  2. Consistency: Follow platform conventions (Cmd on macOS, Ctrl on Windows/Linux)
  3. Visual Feedback: Provide feedback when shortcuts are triggered
  4. Documentation: Make shortcuts visible and discoverable to users

See Also