summaryrefslogtreecommitdiff
path: root/common/action.c
diff options
context:
space:
mode:
authorSimon Melhart2013-11-19 15:29:09 -0800
committerSimon Melhart2013-11-20 09:21:33 -0800
commita6afa845b98d4fa7097c840fedbace59fef8f738 (patch)
tree9c437cd6e0208afb2b681550b4e9cdac594150bc /common/action.c
parent821578293c79c5612f9b77e447295f2947fd6c3d (diff)
Add tap toggle modifiers
Including documentation.
Diffstat (limited to 'common/action.c')
-rw-r--r--common/action.c11
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)
}
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) {