]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Fix RGB_TOG cycle for Massdrop CTRL default keymap (#6056)
authorChris Dosé <chris.dose@gmail.com>
Thu, 22 Aug 2019 00:47:45 +0000 (17:47 -0700)
committerDrashna Jaelre <drashna@live.com>
Thu, 22 Aug 2019 00:47:45 +0000 (17:47 -0700)
This includes the modifier keys in "keys only" mode, bringing the keymap
closer to what the off-the-shelf firmware does.

keyboards/massdrop/ctrl/keymaps/mac/keymap.c

index 79fe7388af6eda597a74aec3d3caf68c1e6166f2..e5b194a3436ddd3b24f6a2c917ff9e2498c35cdf 100644 (file)
@@ -102,11 +102,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
             if (record->event.pressed) {
               switch (rgb_matrix_get_flags()) {
                 case LED_FLAG_ALL: {
-                    rgb_matrix_set_flags(LED_FLAG_KEYLIGHT);
+                    rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
                     rgb_matrix_set_color_all(0, 0, 0);
                   }
                   break;
-                case LED_FLAG_KEYLIGHT: {
+                case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
                     rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
                     rgb_matrix_set_color_all(0, 0, 0);
                   }