Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.65k stars 10.61k forks source link

Keyboard shortcut to switch apps left/right (aka swiping sideways on gesture navigation pill) #4828

Open e-t-l opened 6 months ago

e-t-l commented 6 months ago

Is your feature request related to a problem? Please describe. There are many great keyboard shortcuts, e.g. MOD+H, MOD+N, and MOD + S, but there is no shortcut I could find to switch between active apps (without going to the App Switcher view), like swiping left or right on the Gesture Navigation pill would accomplish.

Describe the solution you'd like Bind these gestures to keyboard shortcuts, for example MOD+Shift+/

rom1v commented 6 months ago

Is there a shortcut key which does that in Android?

e-t-l commented 6 months ago

Do you mean when a physical keyboard is attached? No idea, is that where scrcpy gets it's keyboard shortcuts?

rom1v commented 6 months ago

No idea, is that where scrcpy gets it's keyboard shortcuts?

Scrcpy shortcuts inject special keys, they never involve mouse/touch "gestures" (which would be difficult/unreliable).

e-t-l commented 6 months ago

According to this article, "Cycle through recent apps (forward)" is Alt+Tab (and "Cycle...backward" is +Shift). When I press this key combination while using SCRCPY, it just cycles through my Windows desktop apps (aka the normal behavior of that key combination on Windows). So it looks like a hotkey does exist.