You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clipboard overhaul: pasting files does nothing, copy/paste dies without permission #39
Pasting image files does nothing. Cmd+V is intercepted by the container keydown handler, which preventDefault()s it and routes to pasteFromClipboard() (async Clipboard API). That kills the native paste event — the one event carrying Finder files in clipboardData.files. The async API generally does not expose local file references, so file paste falls into the void. Screenshots via the event's items are likewise never read (the paste handler only checks files).
Shape copy/paste dies without clipboard permission. Copy writes only to the system clipboard; paste reads it back via clipboard.read()/readText(). If the clipboard-read permission is blocked, both fail inside bare catch {} blocks — copy/paste is dead with zero feedback, while Duplicate (in-memory) keeps working.
Proposal
In-memory clipboard as primary: copies keep a shared payload, paste prefers it — same-page editing works offline and permission-free (including across boards on one page).
Stop intercepting Cmd+V; unify all paste on the native paste event: files, then raw image data via items.getAsFile(), then the memory payload, then Quickdraw JSON text. No permissions needed for the event paths.
Activity