]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add mousekey_send to (un)register_code
authorDrashna Jaelre <drashna@live.com>
Thu, 4 Oct 2018 05:33:06 +0000 (22:33 -0700)
committerJack Humbert <jack.humb@gmail.com>
Thu, 4 Oct 2018 14:44:28 +0000 (10:44 -0400)
tmk_core/common/action.c

index 76d02bc9dff8639a37cfdf15cf3f08a6d74b6d73..8bdcd54e32cfbfa69ea74dce61f6e74188ae451a 100644 (file)
@@ -777,6 +777,7 @@ void register_code(uint8_t code)
     #ifdef MOUSEKEY_ENABLE
       else if IS_MOUSEKEY(code) {
         mousekey_on(code);
+        mousekey_send();
       }
     #endif
 }
@@ -841,6 +842,7 @@ void unregister_code(uint8_t code)
     #ifdef MOUSEKEY_ENABLE
       else if IS_MOUSEKEY(code) {
         mousekey_off(code);
+        mousekey_send();
       }
     #endif
 }