moonlight-qt
moonlight-qt copied to clipboard
Linux enable catch all key cannot adjust volume with keyboard shortcut.
Describe the bug On windows , enable catch all key(for example alt+tab), use keyboard shortcut like ( fn+xxx ) can adjust volume. But linux seems not work. Steps to reproduce
- enable catch all key on linux moonglight
- start stream to a windows computer.
- adjust volume with keyboard shortcut and not work.
Other Moonlight clients not bug on windows
Client PC details (please complete the following information)
- OS: debian 12
- Moonlight Version: 5.0.1
- GPU: HD 610
Supplement: I mean catch system key . In the meanwhile ,can adjust local host volume by keyboard shortcut.
Same problem, but I noticed that even adjust the volume inside the Windows PC using mouse, the volume indicator will change but the actual volume won't change. It seems the actual volume is totally controlled by Debian host.
Capturing keyboard events seems to be broken on Gnome on Wayland. It works correctly if you switch to X11.
I don't think there's anything we can do about this one.
Moonlight uses SDL for OS integration. SDL uses the Wayland keyboard shortcut inhibition protocol to grab keyboard input, which doesn't have an option to exclude certain keys.
It's possible maybe SDL could reinject unhandled keys itself, but that's a feature request for SDL not Moonlight.
Just to back up the original post - I notice the exact same issue using X11. System keys are captured correctly, however so are fn+key combinations (like adjusting volume, screen brightness etc.).
This doesn't happen on windows - using a fn+key combo still goes to the host, so you can modify things like volume or brightness of the client while streaming.
Is this something that can be tweaked to allow fn+key combinations to not be sent to the host (or a setting option to this effect)? Or is there something existing that allows you to temporarily suspend sending system keys to the host?
For now a workaround seems to be using the Ctrl+alt+shift+z shortcut to temporarily return control to the host, adjusting volume or brightness, then using the same shortcut to return control back to moonlight
I don't think there's anything we can do about this one.
Moonlight uses SDL for OS integration. SDL uses the Wayland keyboard shortcut inhibition protocol to grab keyboard input, which doesn't have an option to exclude certain keys.
It sounds like it might be a good idea to file a feature request with the Wayland people, then.