qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.37k stars 39.56k forks source link

[Bug] Swap Alt/GUI setting not consistent with keymap #13072

Closed ayisakov closed 3 years ago

ayisakov commented 3 years ago

Describe the Bug

Observed symptoms:

The "Swap Alt/GUI" setting in the online configurator always turns the Alt key on the right side into RAlt, even if it is configured as LAlt in the keymap. Reversing the swap brings back the expected LAlt mapping.

The "Swap LAlt/LGUI" setting only swaps the Alt key on the left side of the keyboard, even though both Alt keys are configured as LAlt in the keymap.

System Information

Additional Context

A work-around is to create a layer in which the Alt and GUI keys are remapped, and allow it to be toggled on/off.

ayisakov commented 3 years ago

False alarm. The settings are behaving as expected. The root cause of the observed behavior is the different treatment of LGUI and RGUI by the OS.