Browse Source

Deactivate oneshot mods once timedout

Carlos Quiroz 8 years ago
parent
commit
3ab0f4d9e5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tmk_core/common/action.c

+ 3 - 0
tmk_core/common/action.c

@@ -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