Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert from clipboard via App context menu not working. Only via Hotkey CTRL+V #5308

Open
pstein opened this issue Sep 19, 2024 · 1 comment

Comments

@pstein
Copy link

pstein commented Sep 19, 2024

I am using the newest scrcpy on Windows 10.
The remote Android is Android 14.

I oftentimes write some text on Windows, then copy it to clipboard and paste it in an app on Android (lets say Whatsapp).
If I use for inserting the App context menu then it doesn't work. Android inserts some stuff from the past.
The only way for a proper insert is via Hotkey

CTRL+V.

Why does scrcpy not recognize the content of the transfer clipboard?
The clipboard content is available as CTRL+V shows.

@rom1v
Copy link
Collaborator

rom1v commented Sep 19, 2024

When you press Ctrl+v in scrcpy, there is a special mechanism which synchronizes the clipboard beforehand.

The computer clipboard is not synchronized automatically, for at least two reasons:

  • technically, SDL does not expose a way to listen to clipboard changes (and scrcpy will not check every n milliseconds the content of the clipboard)
  • from a security/privacy perspective, (for example if I copy a password from my password manager) I don't want to send my computer clipboard to the Android device (and to all installed apps) just because it turns out that scrcpy is running.

@Genymobile Genymobile deleted a comment Sep 19, 2024
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

No branches or pull requests

2 participants