From fa0a3ff8ad315de60f03775fb4f2bafcbdf38b9b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 11 Mar 2024 20:37:02 +0100 Subject: Format --- aktersnurra/sftrp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'aktersnurra/sftrp.c') diff --git a/aktersnurra/sftrp.c b/aktersnurra/sftrp.c index edffc80..7552a87 100644 --- a/aktersnurra/sftrp.c +++ b/aktersnurra/sftrp.c @@ -18,8 +18,7 @@ td_state_t cur_dance(tap_dance_state_t *state) { if (state->count == 2) return TD_DOUBLE_SINGLE_TAP; else - return TD_UNKNOWN; // Any number higher than the maximum state value you - // return above + return TD_UNKNOWN; } void sftrp_finished(tap_dance_state_t *state, void *user_data) { @@ -30,10 +29,9 @@ void sftrp_finished(tap_dance_state_t *state, void *user_data) { break; case TD_SINGLE_HOLD: register_mods(MOD_BIT( - KC_LSFT)); // For a layer-tap key, use `layer_on(_MY_LAYER)` here + KC_LSFT)); break; - case TD_DOUBLE_SINGLE_TAP: // Allow nesting of 2 parens `))` within tapping - // term + case TD_DOUBLE_SINGLE_TAP: tap_code16(KC_RPRN); register_code16(KC_RPRN); break; @@ -49,7 +47,7 @@ void sftrp_reset(tap_dance_state_t *state, void *user_data) { break; case TD_SINGLE_HOLD: unregister_mods(MOD_BIT( - KC_LSFT)); // For a layer-tap key, use `layer_off(_MY_LAYER)` here + KC_LSFT)); break; case TD_DOUBLE_SINGLE_TAP: unregister_code16(KC_RPRN); -- cgit v1.2.3-70-g09d2