Bug 503115 - Have to click within the remote view before keyboard will work (focus issue)
Summary: Have to click within the remote view before keyboard will work (focus issue)
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (other bugs)
Version First Reported In: 25.04.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-21 14:43 UTC by John Veness
Modified: 2025-06-17 20:27 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Veness 2025-04-21 14:43:41 UTC
SUMMARY
This may be more of a wishlist feature request than a bug report, but I would very much like it if I could type into a remote session as soon as the session is opened. At the moment, currently I have to click once in the session window before I can type.

STEPS TO REPRODUCE
1. Open KRDC
2. Start a VNC session to a remote host
3. Press a key on the keyboard

OBSERVED RESULT
The key press isn't recognised by the remote host.

EXPECTED RESULT
The key press is recognised by the remote host. (If you click the mouse within the remote host, keypresses are then recognised).

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250418
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Note that I'm aware of the Grab Keys functionality, and indeed if I turn that on that sort of fixes the above. However, Grab Keys also means that the remote host grabs Alt+Tab and so on, which I do not want. I wish the remote to only respond to "normal" keys as soon as it is opened, i.e. the same as happens if you click within the remote window. I guess that means I want the remote host to have focus as soon as it is opened, but not to "Grab Keys".
Comment 1 Bug Janitor Service 2025-06-17 19:59:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/200
Comment 2 Fabio 2025-06-17 20:01:01 UTC
Git commit 78403954d81d4a23c0a555d1c1194347711548d2 by Fabio Bas.
Committed on 17/06/2025 at 19:58.
Pushed by ctrlaltca into branch 'master'.

VncView: focus the view on successful connection

M  +1    -0    vnc/vncview.cpp

https://invent.kde.org/network/krdc/-/commit/78403954d81d4a23c0a555d1c1194347711548d2
Comment 3 Fabio 2025-06-17 20:27:09 UTC
Git commit 48cbab1b0b3f89d0d1a3cc565a6cfb7583b9d149 by Fabio Bas.
Committed on 17/06/2025 at 20:25.
Pushed by ctrlaltca into branch 'release/25.04'.

VncView: focus the view on successful connection


(cherry picked from commit 78403954d81d4a23c0a555d1c1194347711548d2)

Co-authored-by: Fabio Bas <ctrlaltca@gmail.com>

M  +1    -0    vnc/vncview.cpp

https://invent.kde.org/network/krdc/-/commit/48cbab1b0b3f89d0d1a3cc565a6cfb7583b9d149