summaryrefslogtreecommitdiff
path: root/quantum/keycode_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keycode_config.c')
-rw-r--r--quantum/keycode_config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/keycode_config.c b/quantum/keycode_config.c
index f5068902d5..90b910e960 100644
--- a/quantum/keycode_config.c
+++ b/quantum/keycode_config.c
@@ -162,8 +162,9 @@ __attribute__((weak)) uint8_t mod_config(uint8_t mod) {
162 } 162 }
163 } 163 }
164 if (keymap_config.no_gui) { 164 if (keymap_config.no_gui) {
165 mod &= ~MOD_LGUI; 165 if (mod & MOD_LGUI) {
166 mod &= ~MOD_RGUI; 166 mod &= ~MOD_RGUI;
167 }
167 } 168 }
168 169
169#endif // MAGIC_ENABLE 170#endif // MAGIC_ENABLE