Hi, Shortcuts to increase or decrease the phone volume do not work
Thank you for your report.
On what system (Linux, Windows, MacOS)? On what device, with which keyboard layout?
What if you manually execute:
adb shell input keyevent 24 # volume up
adb shell input keyevent 25 # volume down
?
@rom1v Thanks to you for the answer and if you settle! Windows 7, Huawei P9 lite, QWERTY italian layout
@rom1v no I use the keyboard shortcut but Do not work
To determine the cause of the issue with the keyboard shortcuts, please try sending the volume key events manually.
Open a console, go to the adb directory, and execute the commands provided in https://github.com/Genymobile/scrcpy/issues/103#comment-377288577.
I do not know how to use the console, what should I do exactly? :c
Update: tested on my nexus 5x running nougat. adb commands turn volume up or down. However inside scrscpy the keyboard {ctrl -} or { ctrl +} doesn't change volume.
OK, thank you, I reproduced on Windows.
I could not make Ctrl++ and Ctrl+- work for every keyboard on every platform with SDL2. It seems I am not alone: https://stackoverflow.com/questions/41570751/how-to-correctly-handle-control-key-combinations-in-sdl2
So I changed the shortcuts to Ctrl+↑ and Ctrl+↓ (on dev branch for now).
@rom1v thanks, You are very kind, I hope it will work in the next version :3
Most helpful comment
OK, thank you, I reproduced on Windows.
I could not make Ctrl+
+and Ctrl+-work for every keyboard on every platform with SDL2. It seems I am not alone: https://stackoverflow.com/questions/41570751/how-to-correctly-handle-control-key-combinations-in-sdl2So I changed the shortcuts to Ctrl+
↑and Ctrl+↓(ondevbranch for now).