https://bugs.kde.org/show_bug.cgi?id=329951

Robert Hoffmann <rob...@roberthoffmann.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/krdc/commit/7558fc24428
                   |                            |aca06bea8f218516553307fb8b6
                   |                            |6d
         Resolution|---                         |FIXED

--- Comment #7 from Robert Hoffmann <rob...@roberthoffmann.de> ---
Git commit 7558fc24428aca06bea8f218516553307fb8b66d by Robert Hoffmann.
Committed on 18/02/2021 at 10:16.
Pushed by aacid into branch 'master'.

Unpress modifiers on focusOutEvent in VncView

Key combinations like Alt-Tab, Alt-F2, Alt-F3, Alt-F4 or Ctrl-Alt-Delete are
not effective on the remote desktop but local. The remote desktop looses its
focus but pressed modifier keys like Alt, Ctrl, Shift, Meta,... stay pressed,
rendering the remote desktop unusable.

This patch releases the modifier keys on focus loss.

Test: Press key combinations with modifier keys and check that the remote
desktop
stays usable, e.g. while connected to a remote desktop, type some text into a
terminal or text application, then press Alt-Tab to change focus to a different
local window. Press Alt-Tab again to switch back to krdc and type some text
again.

Without this patch, the Alt modifier is still active on the remote side and
typing
text will fail. With the patch applied typing is successful.

Try other modifiers, too, e.g press the Ctrl-key, hold it and mouseclick some
other
local window to get focus. Release the Ctrl-key and mouseclick krdc again. Do
the
typing test.

Enable KRDC.debug logging and check the "VncView::unpressModifiers key="
message.

M  +11   -1    vnc/vncview.cpp
M  +1    -0    vnc/vncview.h

https://invent.kde.org/network/krdc/commit/7558fc24428aca06bea8f218516553307fb8b66d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to