summaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_magic.c')
-rw-r--r--quantum/process_keycode/process_magic.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_magic.c b/quantum/process_keycode/process_magic.c
index c70764dea1..d5cff4f12a 100644
--- a/quantum/process_keycode/process_magic.c
+++ b/quantum/process_keycode/process_magic.c
@@ -42,7 +42,8 @@ bool process_magic(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
switch (keycode) {
case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_TOGGLE_ALT_GUI:
- case MAGIC_SWAP_LCTL_LGUI ... MAGIC_TOGGLE_CTL_GUI:
+ case MAGIC_SWAP_LCTL_LGUI ... MAGIC_EE_HANDS_RIGHT:
+ case MAGIC_TOGGLE_GUI:
/* keymap config */
keymap_config.raw = eeconfig_read_keymap();
switch (keycode) {
@@ -158,15 +159,17 @@ bool process_magic(uint16_t keycode, keyrecord_t *record) {
clear_keyboard(); // clear first buffer to prevent stuck keys
keymap_config.nkro = !keymap_config.nkro;
break;
-#if 0
case MAGIC_EE_HANDS_LEFT:
eeconfig_update_handedness(true);
break;
case MAGIC_EE_HANDS_RIGHT:
eeconfig_update_handedness(false);
break;
-#endif
+ case MAGIC_TOGGLE_GUI:
+ keymap_config.no_gui = !keymap_config.no_gui;
+ break;
}
+
eeconfig_update_keymap(keymap_config.raw);
clear_keyboard(); // clear to prevent stuck keys