Skip to content

feat(clipboard): add image pasting#2312

Open
slonka wants to merge 3 commits intoHeliBorg:mainfrom
slonka:clip-img-paste
Open

feat(clipboard): add image pasting#2312
slonka wants to merge 3 commits intoHeliBorg:mainfrom
slonka:clip-img-paste

Conversation

@slonka
Copy link

@slonka slonka commented Feb 22, 2026

Adds support for pasting images from the system clipboard via commitContent.

  • When an app supports image input (e.g. messaging apps), the paste toolbar key now sends clipboard images using InputConnectionCompat.commitContent
  • The clipboard suggestion strip shows an image thumbnail when an image is on the clipboard, instead of only handling text
  • Tapping the thumbnail pastes the image; tapping X dismisses it
  • If the target app doesn't support the image MIME type, a toast is shown

Part of #490 (second part will be history)

image

When the user copies an image and presses the
clipboard paste key, commit it to the target app
using Android's commitContent API. Shows a toast
if the editor doesn't support the MIME type.
Text pasting continues to work as before.

Signed-off-by: slonka <slonka@users.noreply.github.com>
@slonka slonka marked this pull request as draft February 22, 2026 19:42
Signed-off-by: slonka <slonka@users.noreply.github.com>
@slonka slonka marked this pull request as ready for review February 22, 2026 19:53
@slonka slonka marked this pull request as draft February 23, 2026 11:06
Signed-off-by: slonka <slonka@users.noreply.github.com>
@slonka slonka marked this pull request as ready for review February 23, 2026 11:19
@slonka
Copy link
Author

slonka commented Mar 16, 2026

@Helium314 can I get a review of this?

@eranl
Copy link
Contributor

eranl commented Mar 16, 2026

@slonka, get in line 🙂

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