-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Add option to disable clipboard autosync #2817
Conversation
By default, scrcpy automatically synchronizes the computer clipboard to the device clipboard before injecting Ctrl+v, and the device clipboard to the computer clipboard whenever it changes. This new option --no-clipboard-autosync disables this automatic synchronization. Fixes #2228 <#2228> PR #2817 <#2817>
35b7b4a
to
6abff46
Compare
@rom1v After the --no-clipboard-autosync option is enabled, the clipboard will no longer be injected when using Ctrl+V to paste, and the windows clipboard cannot be pasted to Android, which is not a good experience. |
@Helaer When pressing Ctrl+v, scrcpy injects Ctrl and v do the device, it does not request to "paste" (it's the Android decision to bind the paste action if Ctrl+v is pressed). In v1.14 and v1.15, mechanisms have been added to allow "seamless copy paste". In particular, this involves computer-to-device clipboard synchronization when Ctrl+v is pressed. And automatic synchronization any time the device clipboard is set. This option aims to disable these mechanism, so Ctrl+v only injects Ctrl+v without synchronizing from the computer clipboard beforehand (so it typically pastes the device clipboard) Ctrl+c copies locally to the device. However, MOD+v still injects |
Ok, I see. |
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization whenever the device clipboard changes is disabled. But on explicit copy and cut scrcpy shortcuts (MOD+c and MOD+x), the clipboard should be synchronized, so that it is still possible to copy-paste from the device to the computer. This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device. Refs #2817 <#2817>
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization whenever the device clipboard changes is disabled. But on explicit copy and cut scrcpy shortcuts (MOD+c and MOD+x), the clipboard should be synchronized, so that it is still possible to copy-paste from the device to the computer. This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device. Refs #2228 <#2228> Refs #2817 <#2817>
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization whenever the device clipboard changes is disabled. But on explicit COPY and CUT scrcpy shortcuts (MOD+c and MOD+x), the clipboard should still be synchronized, so that it remains possible to copy-paste from the device to the computer. This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device. Refs #2228 <#2228> Refs #2817 <#2817>
The future is now: #2834 |
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization performed whenever the device clipboard changes is disabled. But on explicit COPY and CUT scrcpy shortcuts (MOD+c and MOD+x), the clipboard should still be synchronized, so that it remains possible to copy-paste from the device to the computer. This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device. Refs #2228 <#2228> Refs #2817 <#2817> PR #2834 <#2834>
By default, scrcpy automatically synchronizes the computer clipboard to the device clipboard before injecting Ctrl+v, and the device clipboard to the computer clipboard whenever it changes.
This new option
--no-clipboard-autosync
disables this automatic synchronization.Fixes #2228