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

Keyboard combinations for volume buttons conflict with Mac shortcuts #300

Closed
numbermaniac opened this issue Oct 18, 2018 · 10 comments
Closed

Comments

@numbermaniac
Copy link

scrcpy --help says that Control-Up and Control-Down are the commands for activating the volume buttons on the phone. However, these are unusable on Mac by default, because these keyboard shortcuts show you all open windows (control-up), and all the windows for the current application (control-down).

This means that scrcpy doesn't receive these keyboard shortcuts, therefore not simulating the volume button presses on the connected phone.

@rom1v
Copy link
Collaborator

rom1v commented Oct 18, 2018

Mwarf. I changed them from Ctrl++ and Ctrl+- because it did not work everywhere: #103.

I chose Ctrl+ and Ctrl+ because they are the shortcuts for VLC (on Linux at least). What are the VLC shortcut on MacOS?

@numbermaniac
Copy link
Author

For VLC on Mac, the keyboard shortcuts for changing the volume are Command-Up and Command-Down.

@rom1v
Copy link
Collaborator

rom1v commented Oct 23, 2018

@numbermaniac Thank you for the info.

If you look at all the shortcuts for scrcpy, would you say that Ctrl should always be replaced by Command on MacOS? Or just for the volume?

@xinx1n
Copy link

xinx1n commented Oct 24, 2018

Other shortcuts works well on my mac except the volume.
And by default:
Command-M: Minimize the front window to the Dock.
Command-H: Hide the windows of the front app.
So Ctrl should be replaced by Command on MacOS just for the volume.

@numbermaniac
Copy link
Author

Yes, those two shortcuts are also built-in on Mac so they should be best kept as Control. Other shortcuts, though not conflicting with anything, might be confusing if changed to Command: Command-P usually means Print, Command-S usually means Save, Command-F for Find, and Command-B is sometimes used for Bold text.

As xinx1n said, it would probably be best to just replace Ctrl with Command for the volume buttons.

@rom1v rom1v added the todo label Oct 24, 2018
@rom1v
Copy link
Collaborator

rom1v commented Oct 24, 2018

Could you test the macos_volume branch, and tell me if it works correctly on MacOS, please?

@numbermaniac
Copy link
Author

Do I need to go through the full client and server building instructions for this? Is there a pre-built server I can use?

@rom1v
Copy link
Collaborator

rom1v commented Oct 29, 2018

@numbermaniac It should work with the prebuilt server from v1.4: https://github.com/Genymobile/scrcpy/blob/macos_volume/BUILD.md#prebuilt-server

@xinx1n
Copy link

xinx1n commented Oct 30, 2018

sry,I just get my macbook now.
I built the client and server and tested the shortcuts(only the shortcuts), it's ok.

@rom1v
Copy link
Collaborator

rom1v commented Nov 1, 2018

Merged on master (5bf1261 + d061c30).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants