Skip to content

feat(canvas): cut frames and layers with the cut command and context menus (upstream #462) - #10

Closed
ArcticSlayy wants to merge 8 commits into
mainfrom
take/upstream-462
Closed

ArcticSlayy wants to merge 8 commits into
mainfrom
take/upstream-462

Conversation

@ArcticSlayy

Copy link
Copy Markdown
Owner

Takes doop-design#462 into the fork (merge commit, not squashed, so upstream landing it later merges cleanly). Gate: ONE Sol review before merge. Source: doop-design#462

🤖 Generated with Claude Code

kitravee and others added 8 commits November 9, 2026 20:01
Cut copies the selection the way ⌘C does, then removes it the way ⌫ does,
as one undo step. Nothing is removed unless the copy landed; locked frames
and layers are copied but stay; viewers cannot cut. A held ⌘X is ignored,
so it never takes the element and then the frame under it.

Closes doop-design#333

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… DataTransfer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cutWith runs the removal only once the copy landed, for ⌘X and both
context menus. A held ⌘X is stopped by cancelling its repeat keydown in
the existing key handler, so the separate capture listener goes away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nswers

The menus' Cut waits for navigator.clipboard before removing anything.
The frame menu now removes the frames it copied, not whatever is selected
when the write lands, and the element menu cancels when the frame changed
in the meantime instead of saving its older HTML over the newer one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the conflicts with the action registry (doop-design#448): ⌘X stays with the
native cut event, which the registry does not bind, and copy keeps going
through copySelection in elementClipboard.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repository owner deleted a comment from github-actions Bot Nov 15, 2026
@ArcticSlayy

Copy link
Copy Markdown
Owner Author

Dropped: Sol found 3 blockers in upstream#462 (duplicate useStore import, cut deletes the live frame after copying a stale snapshot, a lock set while the clipboard prompt is pending is bypassed). Needs upstream rework.

@ArcticSlayy
ArcticSlayy deleted the take/upstream-462 branch November 15, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants