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? |
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. |
|
It is possible. Remmina can do it. The question is “how do they do it? :) “
|
|
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. |
|
@antenore Please tell me how to implement it. |
|
@bryonbaker Solution: Disable desktop shortcuts. see: 14cc8a6 |
|
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. |
|
|
libxcb and evdev
|
|
@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 😢 |
|
Thanks to @antenore for the reply. |
@bryonbaker Solution: Disable desktop shortcuts. see: 14cc8a6