@scrawl-board/board 0.1.0-beta.6 → 0.1.0-beta.8

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
@@ -25,11 +25,17 @@ the stylesheet explicitly.
25
25
  `ScrawlDefaultUI` supplies the SDK-owned interaction chrome for tools, ink style,
26
26
  undo and redo, zoom and fit, search, JSON import, and PNG, SVG, or JSON export.
27
27
  Every control calls a public grouped controller capability. The default keyboard
28
- surface is scoped to the focused Board: `P` selects marker, `H` selects
29
- highlighter, `V` selects selection, `E` selects eraser, `N` selects note, `T`
30
- selects text, `F` fits content, `Mod+Z` undoes, `Mod+Shift+Z` redoes, and `Mod+F`
31
- opens Board search. Dialogs trap focus, close with Escape, and restore focus to
32
- their opener. Hosts that replace the default UI can remove it independently while
28
+ surface is scoped to the focused Board and centralized in one dispatch table
29
+ (`interaction/keyboard/`, closing issue #27), not scattered across React
30
+ handlers: `P` selects marker, `H` selects highlighter, `V` selects selection,
31
+ `E` selects eraser, `N` selects note, `T` selects text, `F` fits content,
32
+ `Mod+Z` undoes, `Mod+Shift+Z` redoes, `Mod+C` copies the selection, `Mod+X`
33
+ cuts it, `Mod+V` pastes, `Mod+D` duplicates it, `Mod+A` selects every
34
+ top-level (non-hidden) object, `Mod+F` opens Board search, and the arrow keys
35
+ nudge the current selection by a small step (`Shift` for a bigger one) across
36
+ any mix of selected object types, as one undo step. Dialogs trap focus, close
37
+ with Escape, and restore focus to their opener. Hosts that replace the default UI
38
+ can remove it independently while
33
39
  retaining `ScrawlProvider` and `ScrawlCanvas`, or disable individual `tools`,
34
40
  `history`, `view`, `style`, `search`, `import`, and `export` regions with the
35
41
  `ScrawlDefaultUI` `regions` prop.