From a6afa845b98d4fa7097c840fedbace59fef8f738 Mon Sep 17 00:00:00 2001 From: Simon Melhart Date: Tue, 19 Nov 2013 15:29:09 -0800 Subject: Add tap toggle modifiers Including documentation. --- common/action.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/action.c') diff --git a/common/action.c b/common/action.c index f7ae85b941..38ee12abe1 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) { -- cgit v1.2.3