diff options
author | Drashna Jaelre <drashna@live.com> | 2021-08-17 15:47:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 08:47:50 +1000 |
commit | 4c4f632378867b5c3e61461333974f59170893c3 (patch) | |
tree | 8b62911e596e7a3b9aaad060174cc89b3fc52b46 /quantum/process_keycode | |
parent | 3b28178deb7a42a2df8c19b9bf190bb5da732b33 (diff) |
Add a toggle key for GUI On/Off in Magic feature (#13830)
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r-- | quantum/process_keycode/process_magic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_magic.c b/quantum/process_keycode/process_magic.c index 44dd5f0579..01f2fb9289 100644 --- a/quantum/process_keycode/process_magic.c +++ b/quantum/process_keycode/process_magic.c @@ -164,6 +164,9 @@ bool process_magic(uint16_t keycode, keyrecord_t *record) { case MAGIC_EE_HANDS_RIGHT: eeconfig_update_handedness(false); break; + case MAGIC_TOGGLE_GUI: + keymap_config.no_gui = !keymap_config.no_gui; + break; } eeconfig_update_keymap(keymap_config.raw); |