Repository navigation
feat(canvas): cut frames and layers with the cut command and context menus (upstream #462) - #10
Closed
ArcticSlayy wants to merge 8 commits into
Closed
ArcticSlayy wants to merge 8 commits into
ArcticSlayy wants to merge 8 commits into
Conversation
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>
…s with the cut command and context menus
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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