1
0
Fork 0

Add tap toggle modifiers

Including documentation.
This commit is contained in:
Simon Melhart 2013-11-19 15:29:09 -08:00
parent 821578293c
commit a6afa845b9
3 changed files with 20 additions and 0 deletions

View file

@ -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) {