summaryrefslogtreecommitdiff
path: root/quantum/keycode_config.c
diff options
context:
space:
mode:
authorフィルターペーパー <76888457+filterpaper@users.noreply.github.com>2025-11-12 06:02:08 +0800
committerGitHub <noreply@github.com>2025-11-12 09:02:08 +1100
commit99b1dc84da8ed3d2544824f3480090cdb201f0fd (patch)
treeb9fad4b3a508dd40f01881b2bf81a4af9d42b7a6 /quantum/keycode_config.c
parent98504424b1748c6db4eb26fde2c45c8d76eec7b9 (diff)
Fix Magic GUI masking logic (#25780)
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