@squeed/flow-sdk 2.0.37 → 2.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1411,16 +1411,32 @@ import { PiX } from "react-icons/pi";
1411
1411
 
1412
1412
  ## Keyboard Shortcuts
1413
1413
 
1414
- | Key | Action |
1415
- | ---------------------- | --------------------------------- |
1416
- | `Z` | Toggle zoom mode (scroll to zoom) |
1417
- | `M` | Toggle multi-select mode |
1418
- | `D` | Toggle drag/pan mode |
1419
- | `Delete` / `Backspace` | Delete selected non-root nodes |
1420
- | `Escape` | Cancel drawing or a label edit |
1414
+ | Key | Action |
1415
+ | ---------------------- | ----------------------------------------------------------------------------------- |
1416
+ | `Z` | Toggle zoom mode (scroll to zoom) |
1417
+ | `M` | Toggle multi-select mode |
1418
+ | `D` | Toggle drag/pan mode |
1419
+ | Arrow keys | Select a node in that direction and pan it to center without zooming |
1420
+ | `Delete` / `Backspace` | Delete selected non-root nodes |
1421
+ | `Escape` | Cancel an active editor/gesture first; otherwise reuse graph-background deselection |
1421
1422
 
1422
1423
  The canvas supports pointer panning, wheel zoom, and two-finger pinch zoom. Interactive inputs inside nodes retain their own keyboard behavior.
1423
1424
 
1425
+ Click empty canvas to give it keyboard focus. Unmodified arrows select the
1426
+ nearest rendered node in the requested direction, starting from the selected
1427
+ node or the viewport center when nothing is selected. Hidden nodes and nodes
1428
+ inside another canvas are excluded. Panning is immediate and preserves zoom.
1429
+ No candidate leaves selection and viewport unchanged. Forms, open menus,
1430
+ multi-selection, read-only mode, and disabled keyboard shortcuts retain their
1431
+ existing keyboard behavior. Selection callbacks receive
1432
+ `keyboardNavigation: true` in `NodeSelectionModifiers`; hosts should not apply
1433
+ their mouse-click fit/zoom behavior for that event.
1434
+
1435
+ Escape on a selected canvas node reuses the background-click action, including
1436
+ preview retraction and the host's viewport restoration. Editors, dialogs, menus,
1437
+ fullscreen, and active gestures retain priority. If preview opening focuses its
1438
+ label editor, press Escape once to cancel editing and again to close the preview.
1439
+
1424
1440
  ## Theme Utilities
1425
1441
 
1426
1442
  ```tsx