Bug 483638 - TAB key not functional inside rdp windows client
Summary: TAB key not functional inside rdp windows client
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (show other bugs)
Version: 24.02.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-15 09:51 UTC by Antoine
Modified: 2024-04-30 22:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine 2024-03-15 09:51:04 UTC
SUMMARY
Hi,
When we are inside a windows machine (RDP client) - TAB key is not working as expected.
Keymap=fr


STEPS TO REPRODUCE
1. Connect to a Windows 11 machine (RDP client)
2. try to open an app for ex CMD 
3. try to use Tab key 

OBSERVED RESULT
keyboard is blocked until you click somewhere on the screen

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.0.2
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Antoine 2024-03-15 09:53:32 UTC
Key Tab works as expected with Remmina for example
Comment 2 eugene 2024-04-07 10:20:27 UTC
Manjaro Linux, krdc 24.02 + freerdp2, tab key doesn't work in remote system window.
Comment 3 Dennis van der Pool 2024-04-10 09:40:47 UTC
I've got the same issue.
OS: ArchLinux
KRDC fullscreen, configured application settings for krdc "Ignore global shortcuts" Force Yes, but did not help either.
If I can help out in any way, let me know.
Comment 4 Dennis van der Pool 2024-04-10 09:45:46 UTC
This works fine: 
xfreerdp -grab-keyboard /u:"myusername" /v:someip /monitors:0,1 /f /floatbar /multimon /gfx-h264:avc444 +gfx-progressive
Comment 5 Joe S 2024-04-15 16:39:22 UTC
I have been trying to resolve the same problem with the tab key not working in a RDP sessions but I am connecting to xrdp on a linux server.

As an example, if I run konsole in the rdp session and type ls -al and press the tab key it does not show the matches immediately ( .inputrc has set-show-all-if-ambiguous on ).

If I connect using xfreerdp instead of krdc, then the tab key works perfectly in konsole.

The konsole client is NOT the problem because I can replicate the tab key broken using libreoffice calc too.

Start libreoffice calc ( cursor is in cell A1 ), press tab, nothing happens if you are using krdc client.

Switch to using xfreerdp instead of krdc and the tab key works correctly in the rdp session moving the cursor to B1.

IMHO, it seems like the tab key is being "consumed" by something instead of the current process.

I say this because when using krdc and pressing tab ( whether in konsole or libreoffice calc ) those applications no longer respond to keystrokes, however, if you click on anything else ( the desktop background, another app, the taskbar ) to switch focus and then click back on the application ( either konsole or libreoffice calc ) then keystrokes are accepted again and until you press tab key again.

My platform is openSUSE Tumbleweed 20240329 but I have replicated on 20240412 too.
Comment 6 Fabio 2024-04-24 15:15:33 UTC
https://invent.kde.org/network/krdc/-/merge_requests/94 fixes this issue.
Comment 7 Nicolas Fella 2024-04-30 22:49:30 UTC
Git commit c10a8aa61d94816c3aae47bbb6194e13492143d9 by Nicolas Fella, on behalf of Fabio Bas.
Committed on 30/04/2024 at 22:48.
Pushed by nicolasfella into branch 'master'.

Move event handling from vncview to base class remoteview; reuse the same methods in rdpview

M  +45   -0    core/remoteview.cpp
M  +5    -0    core/remoteview.h
M  +3    -40   rdp/rdpview.cpp
M  +3    -10   rdp/rdpview.h
M  +12   -7    test/testview.cpp
M  +3    -1    test/testview.h
M  +0    -41   vnc/vncview.cpp
M  +3    -5    vnc/vncview.h

https://invent.kde.org/network/krdc/-/commit/c10a8aa61d94816c3aae47bbb6194e13492143d9