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

Copy and Paste uses ctrl+c/ctrl+v by default and cannot be changed #1997

Open
samwzlim opened this issue Dec 30, 2020 · 1 comment
Open

Copy and Paste uses ctrl+c/ctrl+v by default and cannot be changed #1997

samwzlim opened this issue Dec 30, 2020 · 1 comment

Comments

@samwzlim
Copy link

I have read the FAQ.
I have searched in existing issues.

Environment

  • OS: macOS 11 Big Sur
  • scrcpy version: 1.16
  • installation method: Brew
  • device model: Huawei Mate 20 Pro
  • Android version: 10

Describe the bug
I use a mac, so copy and paste is carried out by cmd+c/cmd+v. When using scrcpy, it uses ctrl+c/ctrl+v instead, and this gets annoying. I have already attempted changing the shortcut modifier key using the following terminal codes:scrcpy --shortcut-mod=lctrl, scrcpy --shortcut-mod=lctrl+lalt,lsuper, scrcpy --shortcut-mod=lsuper, scrcpy --shortcut-mod=lalt, but it's still using ctrl+c/ctrl+v for copy paste.

@rom1v
Copy link
Collaborator

rom1v commented Dec 30, 2020

Cmd+c and Cmd+v should inject COPY and PASTE.
https://github.com/Genymobile/scrcpy#copy-paste

To test, try:

adb shell input keyevent KEYCODE_COPY
adb shell input keyevent KEYCODE_PASTE

If this does not work as expected, see #1771.

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