diff options
| author | Carlos Quiroz <carlos.m.quiroz@gmail.com> | 2017-06-17 18:42:32 -0400 |
|---|---|---|
| committer | Carlos Quiroz <carlos.m.quiroz@gmail.com> | 2017-06-18 12:17:51 -0400 |
| commit | 3ab0f4d9e521514e0d6f3cb7852656ca4dbe4a37 (patch) | |
| tree | dbd39efe91d1700e6bb493a917cb66b50cc47815 /tmk_core | |
| parent | 5682254f716dc132a2ebf64ab812fcb95d57601c (diff) | |
| download | qmk_firmware-3ab0f4d9e521514e0d6f3cb7852656ca4dbe4a37.tar.gz qmk_firmware-3ab0f4d9e521514e0d6f3cb7852656ca4dbe4a37.zip | |
Deactivate oneshot mods once timedout
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/action.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index cffc0b9eb..6e8ad43c9 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -70,6 +70,9 @@ void action_exec(keyevent_t event) | |||
| 70 | dprintf("Oneshot layer: timeout\n"); | 70 | dprintf("Oneshot layer: timeout\n"); |
| 71 | clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED); | 71 | clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED); |
| 72 | } | 72 | } |
| 73 | if (has_oneshot_mods_timed_out()) { | ||
| 74 | clear_oneshot_mods(); | ||
| 75 | } | ||
| 73 | #endif | 76 | #endif |
| 74 | 77 | ||
| 75 | #ifndef NO_ACTION_TAPPING | 78 | #ifndef NO_ACTION_TAPPING |
