# Keyboard Shortcuts

The Modeler supports comprehensive keyboard navigation for efficient workflow
editing. All functionality is accessible via keyboard, meeting WCAG AA
accessibility standards.

## Shortcut reference

### Editing shortcuts

| Shortcut | Action | Context |
|----------|--------|---------|
| `Delete` | Delete selected nodes/edges | When elements are selected |
| `Ctrl+C` (`Cmd+C` on Mac) | Copy selected elements | When elements are selected |
| `Ctrl+V` (`Cmd+V` on Mac) | Paste elements | When the canvas has focus |
| `Ctrl+F` (`Cmd+F` on Mac) | Toggle search bar | Global (overrides browser find) |
| `Escape` | Clear search and highlights | Global |

### Mouse + modifier combinations

| Combination | Effect | Visual feedback |
|-------------|--------|-----------------|
| `Shift + Click` | Add/remove element from selection | Crosshair cursor |
| `Shift + Drag` | Multi-select box | Selection rectangle |
| `Ctrl + Mouse wheel` | Vertical canvas panning | Vertical resize cursor |
| `Ctrl + Alt + Mouse wheel` | Horizontal canvas panning | Horizontal resize cursor |

## Context awareness

Keyboard shortcuts are **context-aware** -- they are automatically disabled
when you are:

- Typing in a **text input** or **text area** (e.g., a configuration form
  field).
- Editing a **content-editable field** (e.g., a node label).
- Selecting text on the page.

This prevents shortcuts from interfering with normal text editing.

## Token editing shortcut

When working with token fields in the Property Panel:

| Shortcut | Action |
|----------|--------|
| `Ctrl+E` (`Cmd+E` on Mac) | Open inline editor for the token at cursor position |

## Browser override

The `Ctrl+F` shortcut overrides the browser's built-in find function and
opens the modeler's own search bar instead. This is intentional -- the
modeler's search understands workflow elements and can highlight matching
nodes and edges on the canvas.

Press `Escape` to close the search bar and clear highlights.

## Cross-browser compatibility

Keyboard shortcuts work consistently across all major browsers. The modeler
handles platform-specific differences:

- **Mac**: Uses `Cmd` instead of `Ctrl` for modifier shortcuts.
- **Firefox**: Special handling ensures shortcuts work reliably in all contexts.
