diff options
Diffstat (limited to 'common/action.c')
| -rw-r--r-- | common/action.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/action.c b/common/action.c index f7ae85b94..38ee12abe 100644 --- a/common/action.c +++ b/common/action.c | |||
| @@ -128,6 +128,17 @@ void process_action(keyrecord_t *record) | |||
| 128 | } | 128 | } |
| 129 | break; | 129 | break; |
| 130 | #endif | 130 | #endif |
| 131 | case MODS_TAP_TOGGLE: | ||
| 132 | if (event.pressed) { | ||
| 133 | if (tap_count <= TAPPING_TOGGLE) { | ||
| 134 | register_mods(mods); | ||
| 135 | } | ||
| 136 | } else { | ||
| 137 | if (tap_count < TAPPING_TOGGLE) { | ||
| 138 | unregister_mods(mods); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | break; | ||
| 131 | default: | 142 | default: |
| 132 | if (event.pressed) { | 143 | if (event.pressed) { |
| 133 | if (tap_count > 0) { | 144 | if (tap_count > 0) { |
