Repository navigation
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>
|
All contributors have signed the CLA ✍️ ✅ |
[Medium impact] The latest changes appear safe to merge; both previous findings are addressed. SummaryAdds Cut for selected frames and layers through ⌘X and both context menus.
Reviews (2) · Last reviewed commit: "fix(canvas): keep menu cuts to what they..." · Reviewed by Greptile |
…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>
|
I have read the CLA Document and I hereby sign the CLA |
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>
|
Thanks for this, @kitravee, and for the demo! Cut already shipped on |
Closes #333
Demo
CleanShot.2569-11-09.at.20.24.07.mp4
What
editrole onPATCHandDELETE /api/frames/:id, as before.cutWithinsrc/lib/canvasClipboard.ts.copySelectionandcutSelectionnow live insrc/lib/elementClipboard.tsinstead ofCanvasPage.Tests
tests/cutSelection.test.tscovers cutting frames as one undo step, keeping a locked frame, cutting a picked element out of its frame, refusing a viewer, and an empty selection.tests/elementContextMenuBrowser.test.tspicks "Cut 2 frames" from a frame title in Chromium.🤖 Generated with Claude Code