-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
copy paste from pc to device is not working #1750
Comments
MOD+v just inject the keycode PASTE. You can reproduce manually with:
If it does not work on some apps with that key (once you copied some text on the device), then it is not handled correctly by the device or app. Did you try Ctrl+v? |
Yes the Ctrl+v will always paste what is in the device clipboard and not what was copied from the pc. is there some shortcut to force sync the new copied text on pc to the android clipboard. because I also noticed that when you are typing in chrome the show clipboard option is disabled and if you use Ctrl+c Ctrl+v it will work with no problems. |
In theory, pressing Ctrl+v first synchronizes the computer clipboard to the device clipboard: 7683be8 So it seems that for some reason setting the device clipboard is "broken" on your device. Is your device rooted? See #1678 |
you mean it should show something in the adb window that text was copied or something like
that i ma getting when I copy from device
no my device is not rooted |
Yes, exactly:
scrcpy/server/src/main/java/com/genymobile/scrcpy/Controller.java Lines 259 to 262 in 0be766e
|
but when I am pressing ctrl+c on the pc no info is shown on the adb window. |
That's expected (although confusing). Ctrl+c is injected to the device, as Ctrl and c, scrcpy has "no idea" that it will copy (sometimes, for example in Termux, it does something else). It's the system/app which decide what to do on this key combination. |
Some devices do not behave as expected when setting the device clipboard programmatically. Add an option --legacy-paste to change the behavior of Ctrl+v and MOD+v so that they inject the computer clipboard text as a sequence of key events (the same way as MOD+Shift+v). Fixes #1750 <#1750> Fixes #1771 <#1771>
Some devices do not behave as expected when setting the device clipboard programmatically. Add an option --legacy-paste to change the behavior of Ctrl+v and MOD+v so that they inject the computer clipboard text as a sequence of key events (the same way as MOD+Shift+v). Fixes #1750 <#1750> Fixes #1771 <#1771>
|
scrcpy v1.17 Changes since v1.16: - Fix errors on Android 11 (Genymobile#1468) - Add --encoder option (Genymobile#1810, Genymobile#1827) - Add --forward-all-clicks option (Genymobile#1302, Genymobile#1613) - Add --legacy-paste option (Genymobile#1750, Genymobile#1771) - Workaround screen off/on issue on exit (Genymobile#1670) - Rework console/noconsole versions on Windows (Genymobile#1875, Genymobile#1988) - Terminate server properly without killing it on close (Genymobile#1992) - List available shortcut keys on error (Genymobile#1681) - Upgrade platform-tools to 30.0.5 (adb) in Windows releases - Upgrade SDL to 2.0.14 in Windows releases
on KUbuntu, with --legacy-paste turned on, I can't paste wacky Unicodes like 𓃻. I can paste ASCII. This is not mission critical; I tried to stress-test my app. I will try copy-n-paste from inside the Android tablet next. |
Environment
I am trying to copy paste from the pc to the device but it working only with MOD+Shift+v which sometimes take long time and is limited to 300 characters as I noticed. the copy from the device to PC is working well. When I was writing the bug I noticed that MOD+v is working on chrome app on android but on whatsapp or memo or other app will not work. what could be the reason?
The text was updated successfully, but these errors were encountered: