Is there a way to grab the keyboard? #91
-
|
I cannot find any doco or feature that lets Rabbit Remote Control grab the keyboard of the local machine so you can use special jeys such as the Super key in linux. Is there a way? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
|
Currently, special keys like Super cannot be captured on Linux. On Windows, they can be captured. However, some system shortcuts will still be triggered. This is all because the system processes these keys and does not pass them up to the application layer. |
Beta Was this translation helpful? Give feedback.
-
|
It is possible. Remmina can do it. The question is “how do they do it? :) “
|
Beta Was this translation helpful? Give feedback.
-
|
It uses GTK, captured from system messages. The specific implementation can be studied later when there's time. You can directly ask its developer. Let me know the results. |
Beta Was this translation helpful? Give feedback.
-
|
@antenore Please tell me how to implement it. |
Beta Was this translation helpful? Give feedback.
-
|
@bryonbaker Solution: Disable desktop shortcuts. see: 14cc8a6 |
Beta Was this translation helpful? Give feedback.
-
|
Disabling the relevant desktop shortcuts through the system settings allows the application to capture all keys. However, restoring the desktop shortcuts requires a restart. Therefore, this method is not perfect. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
libxcb and evdev
|
Beta Was this translation helpful? Give feedback.
-
|
@KangLin sorry I missed this notification, and I don't work on Remmina since more than 2 years now. The sort answer is that in Qt, is a pain on the xxx, in GTK this were done using a GTK grab function, that steals all the input events. In Qt, I believe, you can do this in different ways...
The third solution may be the best bet, but it's quite complex
The methods described above primarily capture keys only when your Qt application is the active, focused window . The OS/window manager will still intercept keys when another application has focus. I hope this help!!! And sorry I didn't read the full thread 😢 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks to @antenore for the reply. |
Beta Was this translation helpful? Give feedback.
@bryonbaker Solution: Disable desktop shortcuts. see: 14cc8a6