Fix Magic GUI masking logic (#25780)

This commit is contained in:
フィルターペーパー
2025-11-12 06:02:08 +08:00
committed by GitHub
parent 98504424b1
commit 99b1dc84da

View File

@@ -162,9 +162,10 @@ __attribute__((weak)) uint8_t mod_config(uint8_t mod) {
}
}
if (keymap_config.no_gui) {
mod &= ~MOD_LGUI;
if (mod & MOD_LGUI) {
mod &= ~MOD_RGUI;
}
}
#endif // MAGIC_ENABLE
return mod;