TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
747 stars 137 forks source link

Alt key shifts focus away from VNC on Windows by popping up a menu. #349

Closed Patrick-Poitras closed 1 year ago

Patrick-Poitras commented 1 year ago

This is a copy-paste of the comments on https://github.com/TurboVNC/turbovnc/issues/348 when I believed this was part of another bug. I've attempted to provide enough information to prevent having to reference the other issue.


Original report:

I'm now having a slightly different problem, where if I press the Alt key, and don't press anything else and release, it shifts the focus away from the window, and then if I press keys, there's a window that pops up.

image

It does this even if there's keyboard grabbing, which makes it a mess. The key sequence that reproduces this 100% of the time is roughly "Alt_Down Alt_Up Up_Arrow_Down"


A summary of what has been tried by @dcommander https://github.com/TurboVNC/turbovnc/issues/348#issuecomment-1330096238, which are summarized. :

dcommander commented 1 year ago

Should be fixed now, and I'll comment again when pre-release builds are available with the fix. https://stackoverflow.com/a/3994002 actually was the right approach. I just needed to modify the key event dispatcher so that it actually sends the LAlt key press or release to the server rather than ignoring it. In my haste to look into the issue prior to the TurboVNC 3.0.2 release deadline last week, I missed that.

dcommander commented 1 year ago

Builds are up

Patrick-Poitras commented 1 year ago

It works! Thank you so much!