moonlight-stream / moonlight-stream/moonlight-android
[Issue]: Pressing the win key on an external keyboard does not work
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 7.1k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
May I ask if I have turned on Sunshine on my computer and then connected to my computer using Moonlight on my tablet, but how can I make the win key (actually the key code is the meta_left key) of the keyboard work properly? I know Sunshine provides Alt_ The right key replaces the win key, but it cannot use a combination of win keys.
It's not that Android ate the win key, but rather that the Moonlight software itself didn't listen to it (I tried changing Moonlight's code), so no matter how you press the win key, Moonlight won't transfer the win key. But I found a software that can listen to this win key, unfortunately I don't know how it works. You can refer to it and perhaps implement this function for Moonlight.
Software: https://github.com/keymapperorg/KeyMapper
#The important point is that this seems to be unrelated to the computer and Sunshine, but rather the Moonlight software itself did not listen to this win key
Steps to reproduce
- Turn on Sunshine on the computer.
- Connect the Android tablet to an external keyboard (Bluetooth or wired).
- Connect to the computer using Android tablet moonlight.
- During the process of controlling the computer, pressing the win key does not respond and the computer cannot use the combination keys of win.
Affected games
none
Other Moonlight clients
PC
Moonlight adjusted settings
Yes
Moonlight adjusted settings (please complete the following information)
none
Moonlight default settings
Yes
Gamepad-related connection issue
Yes
Gamepad-related input issue
Yes
Gamepad-related streaming issue
Yes
Android version
Android 10~12
Device model
null
Server PC OS version
window 11 22H2
Server PC GeForce Experience version
sunshine 0.2
Server PC Nvidia GPU driver version
537.13
Server PC antivirus and firewall software
No antivirus software installed, firewall is turned off
Screenshots
No response
Relevant log output
No response
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin by reproducing the missing meta_left event with an external keyboard on Android 10–12 while connected through Moonlight, then trace the Android keyboard-input handling. Use the KeyMapper project linked in the issue as a comparison point. Done means the Windows key is forwarded and Windows-key combinations work on the server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100