gdkkeys-win32: Also ignore Ctrl + Shift (etc.)
authorPhilip Zander <philip.zander@gmail.com>
Tue, 8 Feb 2022 19:33:42 +0000 (20:33 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Wed, 9 Feb 2022 09:43:07 +0000 (10:43 +0100)
commit037c0e4005b47a0b0f23c8f73944292d28eb1b8f
treeb2de34a0b635dff2e41489bac88c498621f54c70
parentb9389d37841609a91ca0484ccc4079f338cc4fd0
gdkkeys-win32: Also ignore Ctrl + Shift (etc.)

Some Windows keymaps have bogus mappings for the Ctrl modifier. !4423 attempted
to fix this by ignoring the Ctrl layer, but that was not enough. We also need to
ignore combinations of Ctrl with other modifiers, i.e. Ctrl + Shift. For example,
Ctrl + Shift + 6 is mapped to the character 0x1E on a US keyboard (but it should
be treated as Ctrl + ^). Basically, always ignore Ctrl unless it is used in
conjunction with Alt, i.e. as part of AltGr.

Related issue: #4667
gdk/win32/gdkkeys-win32-impl.c