openpencil/packages
Danila Poyarkov 44484050e2 fix(canvas): make canvas focusable so Backspace works after click
The canvas had no tabindex, so clicking on it didn't move focus away
from previously focused input elements. When document.activeElement
was still an input/textarea (e.g. from a panel interaction), the
keyboard shortcut guard treated Backspace as blocked by an active
input — making it impossible to delete selected nodes via the canvas.

- Add tabindex="-1" + outline-none to the canvas element
- Explicitly focus canvas on mousedown (except during text editing)

Fixes #220
2026-04-22 13:45:23 +03:00
..
cli feat: copy node ID / XPath from context menu, CLI selection command 2026-04-15 10:09:52 +03:00
core feat(canvas): default canvas bg to dark on prefers-color-scheme: dark (#205) 2026-04-20 11:44:50 +03:00
demos feat: mobile layout, PWA support (#27) (#27) 2026-03-05 19:51:51 +03:00
docs feat(mcp): add stdio transport for Claude Code / Cursor 2026-04-13 11:51:01 +03:00
mcp feat(mcp): add stdio transport for Claude Code / Cursor 2026-04-13 11:51:01 +03:00
vue fix(canvas): make canvas focusable so Backspace works after click 2026-04-22 13:45:23 +03:00