diff options
author | tmk <nobody@nowhere> | 2013-11-28 16:31:06 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-11-28 16:31:06 +0900 |
commit | fd9ee507a557e17b5af9fcd8892868ddf07bbb7a (patch) | |
tree | 05f1f89e90a23d3dff01052a1875be2cf3133135 /common/action.c | |
parent | f3132adb33fd38e8d9d49845809ad5cb89f9c9c1 (diff) | |
parent | a6afa845b98d4fa7097c840fedbace59fef8f738 (diff) |
Merge branch 'modstaptoggle' of git://github.com/simonmelhart/tmk_keyboard into simonmelhart-modstaptoggle
Conflicts:
common/action_code.h
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 485abf81e3..e6938f5a23 100644 --- a/common/action.c +++ b/common/action.c @@ -128,6 +128,17 @@ void process_action(keyrecord_t *record) } break; #endif + case MODS_TAP_TOGGLE: + if (event.pressed) { + if (tap_count <= TAPPING_TOGGLE) { + register_mods(mods); + } + } else { + if (tap_count < TAPPING_TOGGLE) { + unregister_mods(mods); + } + } + break; default: if (event.pressed) { if (tap_count > 0) { |