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

Always synchronize clipboard on explicit COPY/CUT #2834

Merged
merged 4 commits into from
Nov 29, 2021
Merged

Always synchronize clipboard on explicit COPY/CUT #2834

merged 4 commits into from
Nov 29, 2021

Commits on Nov 29, 2021

  1. Fix set_clipboard message log

    If paste is disabled on set_clipboard, then the PASTE key is not
    injected, but COPY is unrelated.
    
    PR #2834 <#2834>
    rom1v committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    cbe73b0 View commit details
    Browse the repository at this point in the history
  2. Move acknowledgment handling

    Handle all actions related to SET_CLIPBOARD from the dedicated method.
    
    PR #2834 <#2834>
    rom1v committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    dc19ae3 View commit details
    Browse the repository at this point in the history
  3. Expose sync mode for injecting events

    Expose the inject input event mode so that it is possible to wait for
    the events to be "finished". This will be necessary to read the
    clipboard content only after the COPY or CUT key event is handled.
    
    PR #2834 <#2834>
    rom1v committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    bfcb9d0 View commit details
    Browse the repository at this point in the history
  4. Always synchronize clipboard on explicit COPY/CUT

    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>
    rom1v committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    e2b3968 View commit details
    Browse the repository at this point in the history