Merge branch 'dev'

This commit is contained in:
Jeff Emmett 2026-03-22 14:29:13 -07:00
commit 358e327bad
2 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,6 @@ export class FolkShape extends FolkElement {
this.requestUpdate("rotation"); this.requestUpdate("rotation");
} }
static GAP = 8; // minimum gap between shapes
static pushExemptTags = new Set(["folk-arrow", "folk-slide", "folk-shape"]); static pushExemptTags = new Set(["folk-arrow", "folk-slide", "folk-shape"]);
#highlighted = false; #highlighted = false;

View File

@ -3971,8 +3971,9 @@
// Keyboard shortcuts for canvas tools // Keyboard shortcuts for canvas tools
document.addEventListener("keydown", (e) => { document.addEventListener("keydown", (e) => {
// Skip when typing in inputs // Skip when typing in inputs (composedPath pierces shadow DOM)
if (e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA" || e.target.isContentEditable) return; const t = e.composedPath()[0];
if (t?.tagName === "INPUT" || t?.tagName === "TEXTAREA" || t?.isContentEditable) return;
if (e.key === "Escape") { if (e.key === "Escape") {
// Dismiss reminder widget if open // Dismiss reminder widget if open