瀏覽代碼

Merge pull request #1405 from cquiroz/oneshot-mods-timeout

Oneshot mods timeout
Jack Humbert 8 年之前
父節點
當前提交
23df3016e8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tmk_core/common/action.c

+ 3 - 1
tmk_core/common/action.c

@@ -67,9 +67,11 @@ void action_exec(keyevent_t event)
 
 #if (defined(ONESHOT_TIMEOUT) && (ONESHOT_TIMEOUT > 0))
     if (has_oneshot_layer_timed_out()) {
-        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