mariotaku/moonlight-tv

Capture Meta (Windows) Key

FallingSnow opened this issue · 4 comments

Description

Is it possible to mimic the way Windows 365 under the home office app captures the Meta key?

Motivation

Would be nice to not get sent to the LG home screen every time I hit the Meta key.

Additional Context

No response

I think I figured out a way of handling that. I'll provide an option to capture the home button in future releases.

@mariotaku You are the man! Thank you!

I gave v1.6.17 a try and enabled capture system keys in the settings. Unfortunately it does not seem to work on my device. Pressing the windows/meta key leaves the app and takes me back to the LG home screen.

Okay, I ran into a very strange issue. I'm trying to figure out a unstable network issue that just appeared yesterday when all of a sudden the windows key starts working. I think "Oh wow, that's pretty cool, wonder if it started working because I repaired with the client... anyways back to figuring out this unstable network issue." But then I notice neither Ctrl+Alt+S nor Ctrl+Alt+Q are working. Then the keyboard stops working all together. Mouse still works though. -- So I decide to power off and on the TV via the remote. Once the TV is back on the keyboard still doesn't seem to be working (but there is usually a delay when starting the TV and being able to hit the start button to go to home so it may have just been that.) So I hit Ctrl+Alt+Del to try to hard reset the TV, which it does. Now I go back into the Moonlight app and it is exactly as it always was, windows key isn't captured and stat/quit combo work. Bummer.

I have 2 theories as to what is going on here.

  1. Some kind of race condition. Maybe since my unstable network issues are causing the first frame to load slowly, or connect slowly (I see a black frame for a little before I get to 1-2 fps.) Maybe things are being initialized at different times/speeds and this results in this unexpected behavior.
  2. Either the Moonlight App or WebOS messes up and starts sending all keys the client.

As a side note, I've Ctrl+Alt+S and Ctrl+Alt+Q stop working before several times, usually after long connection sessions (maybe +24 hours). I never though to check if the Windows key starts working when though break. I'll keep it in mind for next time.