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

Attempt to solve ralt_combo (issue #10826) #11294

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/gui_w32.c
Expand Up @@ -852,6 +852,12 @@ get_active_modifiers(void)
modifiers |= MOD_MASK_ALT;
if ((modifiers & MOD_MASK_CTRL) && (GetKeyState(VK_RMENU) & 0x8000))
modifiers &= ~MOD_MASK_CTRL;
// Add RightALT only if it is hold alone (without Ctrl),
// because if AltGr is press, Windows claims that Ctrl is
// hold as well. That way we can recognize RightALT alone and
// be sure that not AltGr is hold.
if (!(GetKeyState(VK_CONTROL) & 0x8000) && (GetKeyState(VK_RMENU) & 0x8000))
modifiers |= MOD_MASK_ALT;

return modifiers;
}
Expand Down