fix: clipboard image paste on Linux WebKitGTK + Ctrl+Shift+V shortcut#6
Merged
craig7351 merged 2 commits intoMay 12, 2026
Merged
Conversation
…tcut WebKitGTK never surfaces image MIME types in ClipboardEvent.clipboardData.items, so the previous hasImage guard always returned false and the paste handler was silently skipped. Fix by removing the guard and delegating detection entirely to the native arboard backend (clipboard_save_image already handles the no-image case). Also add Ctrl+Shift+V as an explicit image-paste shortcut that bypasses the paste event entirely, covering cases where WebKitGTK doesn't fire a paste event for image-only clipboard content. Add tauri.conf.dev.json for building a parallel BOOKSHELLDEV app (different identifier) that can coexist with the production build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tGTK hangs - Use a persistent clipboard worker thread (arboard) for text writes so X11 keeps responding to SelectionRequest events after set_text returns - Add clipboard_read_text command for reading text back without WebKit - Ctrl+Shift+V now falls back to text paste when clipboard holds no image - Guard onMouseUp auto-copy to left-click only (button === 0) so middle-click no longer overwrites clipboard and breaks primary paste Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
ClipboardEvent.clipboardData.itemsnever surfaces image MIME types on WebKitGTK, so the previoushasImageguard always returnedfalse. Now delegates image detection entirely to the nativearboardbackend (clipboard_save_imagealready returnsnullwhen no image is present).pasteevent entirely, covering cases where WebKitGTK does not fire apasteevent for image-only clipboard content.tauri.conf.dev.jsonfor building a parallelBOOKSHELLDEVapp (different identifier) that can coexist with the production build.Test plan
🤖 Generated with Claude Code