Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better detection of AltGr on Windows #1035

Merged
merged 2 commits into from Mar 13, 2018
Merged

Conversation

CendioOssman
Copy link
Member

Try to properly detect the fake CtrlL+AltR sequence Windows sends when pressing AltGr. This allows us to send more accurate key events over to the server.

This mainly makes things better when using QEMU key events, but other cases will improve as well.

The remaining corner case is Ctrl+AltGr which only works if the browser has special handling for it (only Chrome so far). On most browsers we'll get Ctrl+Alt instead. But before this patch we got nothing at all, so it is not necessarily worse.

Based on the same work in TigerVNC:

TigerVNC/tigervnc@5124978

This makes sure it never gets out of sync with what we've actually
sent.
Try to properly detect the fake CtrlL+AltR sequence Windows sends
when pressing AltGr. This allows us to send more accurate key
events over to the server.
@CendioOssman
Copy link
Member Author

Tested on Chrome, IE and Firefox. Works well (with workaround for #1004).

Copy link
Member

@DirectXMan12 DirectXMan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@samhed samhed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@CendioOssman CendioOssman merged commit b22c9ef into novnc:master Mar 13, 2018
@CendioOssman CendioOssman deleted the altgr branch March 13, 2018 15:03
@samhed samhed added this to the v1.1.0 milestone May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants