moonlight-stream / moonlight-stream/moonlight-android

[Issue]: Pressing the win key on an external keyboard does not work

Open
#1,256 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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.

2f69cf599a503277a1d3c7b1c29726f

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

2eef61fda64554e8fb4f0449f52bd52

#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
  1. Turn on Sunshine on the computer.
  2. Connect the Android tablet to an external keyboard (Bluetooth or wired).
  3. Connect to the computer using Android tablet moonlight.
  4. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.