Genymobile / Genymobile/scrcpy

Scrcpy shortcuts break Android's own keyboard shortcuts on MacOS

Open
#6,641 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

_Please read the [prerequisites] to run scrcpy._

[prerequisites]: https://github.com/Genymobile/scrcpy#prerequisites

_Also read the [FAQ] and check if your [issue][issues] already exists._

[FAQ]: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md
[issues]: https://github.com/Genymobile/scrcpy/issues

## Environment

- **OS:** macOS Sequoia
- **Scrcpy version:** 3.3.4
- **Installation method:** brew
- **Device model:** Boox Tab Ultra C Pro
- **Android version:** 13

## Describe the bug

When using:
```
scrcpy --no-video --no-audio --keyboard=uhid --mouse=uhid
```
The native Android keyboard shortcuts (for instance meta + B for opening the web browser) don't work.

Then when using:
```
scrcpy --no-video --no-audio --shortcut-mod=rsuper --keyboard=uhid --mouse=uhid
```
The above keyboard shortcuts work, BUT then copy-pasting using the left CMD key is broken.
I've tried fixing this with various workarounds, for instance, adding my own copy/paste shortcut on Android using Key Mapper, but this works only for pasting from host to device, no the other way around.

Maybe I'm missing something.

Thanks for your help and the great app.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two provided scrcpy commands on macOS Sequoia with the reported Android device and compare native Android shortcuts with left-CMD copy/paste behavior. Done means both native shortcuts, such as meta+B, and copy-pasting with the left CMD key work together without a workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c, macos
Domain
desktop, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.