]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix weak modifier clear in action macro
authortmk <hasu@tmk-kbd.com>
Sat, 12 Sep 2015 02:25:41 +0000 (11:25 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 12 Sep 2015 02:25:41 +0000 (11:25 +0900)
tmk_core/common/action_macro.c

index ba93fc8b2324b7cb96e9a5744a21eee89c3f588d..ffaf125c06ce8850c8e66135a71ef07c986513ba 100644 (file)
@@ -42,6 +42,7 @@ void action_macro_play(const macro_t *macro_p)
                 dprintf("KEY_DOWN(%02X)\n", macro);
                 if (IS_MOD(macro)) {
                     add_weak_mods(MOD_BIT(macro));
+                    send_keyboard_report();
                 } else {
                     register_code(macro);
                 }
@@ -51,6 +52,7 @@ void action_macro_play(const macro_t *macro_p)
                 dprintf("KEY_UP(%02X)\n", macro);
                 if (IS_MOD(macro)) {
                     del_weak_mods(MOD_BIT(macro));
+                    send_keyboard_report();
                 } else {
                     unregister_code(macro);
                 }