Implemented

Grab keyboard input

avatar

Hello, is it possible to grab keyboard input? In the Windows client, there is a magnet icon to click in the status bar at the bottom of the screen. However that bar does not appear to exist in the Linux client. I wanted to check here prior to submitting a feature request, in case I am looking in the wrong place. Not being able to use <windows key> shortcuts in RDP sessions completely ruins my workflow unfortunately, so I end up using Remmina.

All Comments (12)

avatar

Hi,

We tried redirecting the windows key through the RDP session but, unfortunately, we were unsuccessful.
It seems that our gtk wrapper (GtkSharp) wouldn't let us grab the windows key.
That being said, I'll open a ticket to reexplore that feature and see if we can figure something out this time around.

Regards

Jonathan Lafontaine

avatar

Great. Thank you for the quick reply!

avatar

What DE are your running?

Jonathan Lafontaine

avatar

KDE Plasma 5.24.6

avatar

I just tested on KDE.
I can get the windows menu to popup after pressing the windows key, but that also brings up the KDE menu.
If that is also the case for you, what we need is a way to stop kde (or any other DE that lets us intercept the windows key, gnome doesn't) from getting the key down/up signal.

Jonathan Lafontaine

avatar

Yes that is basically it. The windows key is recognized by both KDE and the VM simultaneously. If it was just the KDE menu popping up, that wouldn't be a big deal as I could disable that. However I am a very heavy keyboard shortcut user and use a mouse far less often than most people, and I have many shortcuts configured in KDE that conflict with shortcuts in Windows (such as win+e for explorer for instance). Let me know if I can assist in any way.

avatar

Hi,

I've been testing with KDE and remmina and I can't get the windows key to only send to windows.
I always get the KDE menu to popup. Is there a setting (besides the "Grab all keyboard events" button once connected that doesn't seem to do much in my case) I need to change?

Jonathan Lafontaine

avatar

Hi Jonathan,

Not as far as I'm aware. It is just that button. I'm not sure if it matters but I'm on Wayland.

Another example of applications being able to do this are hypervisors (both virt-manager and Virtualbox). I have no idea if this functionality in other applications are useful to you or not though, as I'm sure they're created with different language, libraries, etc.

avatar

Switching to wayland did the trick.
We'll see what can be done.

Jonathan Lafontaine

avatar

Hi Jonathan,
If it helps, the Meta/Windows key can be disabled from opening the KDE menu by adding this to ~/.config/kwinrc:
[ModifierOnlyShortcuts]
Meta=

avatar

Hi,

We were able to successfully capture the windows key just like remmina when RDM is running under KDE + Wayland.
That fix will be available in our 2022.3 release coming later this year.

Jonathan Lafontaine

avatar

That's great. Thanks Jonathan!!