]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Deactivate oneshot mods once timedout
authorCarlos Quiroz <carlos.m.quiroz@gmail.com>
Sat, 17 Jun 2017 22:42:32 +0000 (18:42 -0400)
committerCarlos Quiroz <carlos.m.quiroz@gmail.com>
Sun, 18 Jun 2017 16:17:51 +0000 (12:17 -0400)
tmk_core/common/action.c

index cffc0b9ebe1c994ee53edad4a072c08b5d97fd30..6e8ad43c9ce991049dfa25f1d6dcbb133c41a470 100644 (file)
@@ -70,6 +70,9 @@ void action_exec(keyevent_t event)
         dprintf("Oneshot layer: timeout\n");
         clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED);
     }
+    if (has_oneshot_mods_timed_out()) {
+        clear_oneshot_mods();
+    }
 #endif
 
 #ifndef NO_ACTION_TAPPING