1 //instanalize an instance of 'tap' for the Semicolon - Colon tap dance.
2 static tap scln_coln_state = {
3 .is_press_action = true,
7 void scln_coln_finished(qk_tap_dance_state_t *state, void *user_data) {
8 scln_coln_state.state = current_dance(state);
9 switch (scln_coln_state.state) {
11 register_code(KC_SCLN);
15 register_code(KC_LALT);
16 register_code(KC_LSFT);
17 register_code(KC_LGUI);
21 register_code16(KC_COLN);
26 void scln_coln_reset(qk_tap_dance_state_t *state, void *user_data) {
27 switch (scln_coln_state.state) {
29 unregister_code(KC_SCLN);
33 unregister_code(KC_LALT);
34 unregister_code(KC_LSFT);
35 unregister_code(KC_LGUI);
39 unregister_code16(KC_COLN);
42 scln_coln_state.state = 0;