CrossCopy / tauri-plugin-clipboard

A Tauri clipboard plugin with text, files, html, RTF, and image support. Clipboard content update monitoring is also supported.
https://crosscopy.github.io/tauri-plugin-clipboard/
MIT License
122 stars 6 forks source link

Copy text and images at the same time #33

Closed ayangweb closed 1 month ago

ayangweb commented 1 month ago

Hey 👋, and then copying the combined text+image message at the same time only triggers the onFilesUpdate event? I'm not quite sure if this is a bug or not?

image image
HuakunShen commented 1 month ago

How are you copying in QQ? Right click the message and copy? Or right click on image and copy?

ayangweb commented 1 month ago

How are you copying in QQ? Right click the message and copy? Or right click on image and copy?

Right clicking on a blank space and copying it, then pasting it into the chat box again has both text and image, but only triggers the onFilesUpdate event!

image
HuakunShen commented 1 month ago

This is not a problem with this library. It depends on QQ's implementation. I reproduced your issue. Try pasting to other apps like WeChat or Word document. Only the image will be pasted. I guess QQ has a internal storage for what is copied. When you paste within QQ, it pulls from the internal clipboard instead of the system clipboard (That's just a guess).

But there is nothing I can do if the system clipboard isn't really updated.

Closed for now.

ayangweb commented 1 month ago

This is not a problem with this library. It depends on QQ's implementation. I reproduced your issue. Try pasting to other apps like WeChat or Word document. Only the image will be pasted. I guess QQ has a internal storage for what is copied. When you paste within QQ, it pulls from the internal clipboard instead of the system clipboard (That's just a guess).

But there is nothing I can do if the system clipboard isn't really updated.

Closed for now.

OK, I tested the same thing and it's fine, this should be a feature implemented internally in this kind of apps that support combo messages and has nothing to do with the system clipboard!