Bug 496656 - Keyboard no longer works in remote systems
Summary: Keyboard no longer works in remote systems
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (other bugs)
Version First Reported In: 24.08.3
Platform: Fedora RPMs Linux
: NOR critical
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-25 01:35 UTC by Jy
Modified: 2025-01-21 15:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 24.12
Sentry Crash Report:


Attachments
version screen (26.66 KB, image/png)
2024-11-25 17:26 UTC, Jy
Details
krdc version screen (35.33 KB, image/png)
2024-11-25 17:27 UTC, Jy
Details
KRDC version on the ticket (5.54 KB, image/png)
2024-11-25 17:29 UTC, Jy
Details
Video of the effects of grabbing keys (461.61 KB, video/mp4)
2024-11-26 23:21 UTC, Jy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jy 2024-11-25 01:35:12 UTC
***
***

SUMMARY

Keyboard does not work anymore. Have to press grab keyboard repeatedly, to turn it on, off, and back on, for the keyboard to work. In previous versions none of this was necessary.

The mouse cursor no longer changes accordingly to the remove system, i.e. it is no longer possible to see that it points at resizable column boundaries, etc. where the shape of the cursor is important for the user experience.

STEPS TO REPRODUCE
1. Run KRDC
2. Connect to a remote system.
3. Type some text.

OBSERVED RESULT

No text is typed.

EXPECTED RESULT

Text is typed.

SOFTWARE/OS VERSIONS
Windows: any
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: I've no idea, I do not use it for desktop. There is no version string in 'About KDE' of KRDC.
KDE Frameworks Version: No clue. See above.
Qt Version: No faintest idea. See above.

ADDITIONAL INFORMATION

There are no words to express how critical this bug is. This is a gigantic pain point and a huge show-stopper. When KRDC grabs keys, nothing works on the host: neither keyboard nor mouse. When keys are not grabbed, there is no keyboard input into the remote system. It is unfathomable how this made it through QA.
Comment 1 Fabio 2024-11-25 14:52:21 UTC
Pleae reportd krdc / qt version; you can find them in Help menu -> about krdc
Also, what DE are you running? gnome on wayland?
Comment 2 Jy 2024-11-25 17:25:38 UTC
KDE Frameworks 
Version 6.8.0
Qt 
Version 6.8.0 (built against 6.8.0)
The xcb windowing system

This is Fedora 41 with Mate. I've no idea what wayland is.
Comment 3 Jy 2024-11-25 17:26:09 UTC
Created attachment 176107 [details]
version screen
Comment 4 Fabio 2024-11-25 17:26:58 UTC
Can i ask you again the krdc version it should be something like 24.05.x or 24.08.x
Comment 5 Jy 2024-11-25 17:27:54 UTC
Created attachment 176108 [details]
krdc version screen

I had indicated the KRDC version on the ticket. If you cannot see it there refer to this screen
Comment 6 Jy 2024-11-25 17:29:35 UTC
Created attachment 176109 [details]
KRDC version on the ticket

Is this information not available to you?
It is here since I had created the ticket. If it is not visible to you pleas ask your administrator to give you access to see all of the info on the ticket, not just parts of it.
Comment 7 Fabio 2024-11-25 22:23:23 UTC
I've just sent a change implementing the "cursor shape": https://invent.kde.org/network/krdc/-/merge_requests/130
About the keyboard grab problem, I've not been able to reproduce the problem on plasma/wayland, plasma/x11 and xfce/x11.
I'll try to create a fedora 41/mate vm and test on it.
Comment 8 Jy 2024-11-26 23:21:43 UTC
Created attachment 176157 [details]
Video of the effects of grabbing keys

1. up and down keys hit on the remote w/o grab keys button.
2. up and down keys hit on the host.
3. up and down keys hit on the remote after grab keys button depressed.
4. up and down keys hit on the host.
Comment 9 Jy 2024-11-26 23:26:16 UTC
Only in the windowed mode, there is any effect of hitting keys in KRDC. In full screen mode, there is no effect whatsoever until the grab keys button is pressed.
Comment 10 Fabio 2024-11-27 21:39:23 UTC
Thank you for the video, it made me realize what broke the keyboard handling for you (spoiler: focus interaction with the "remote desktops" left sidebar). https://invent.kde.org/network/krdc/-/merge_requests/131 fixes this issue, so now keypresses works also then "grab keys" is disabled.

One problem left: from your video "grab keys" steals keypresses from other windows even when krdc is not focused. I've not been able to reproduce this problem yet, but it's the next thing i'm working on.