1 //instanalize an instance of 'tap' for the Dot - Comma tap dance.
2 static tap dot_comm_state = {
3 .is_press_action = true,
7 void dot_comm_finished(qk_tap_dance_state_t *state, void *user_data) {
8 dot_comm_state.state = current_dance(state);
9 switch (dot_comm_state.state) {
11 register_code(KC_DOT);
15 register_code(KC_LCTL);
16 register_code(KC_LSFT);
20 register_code(KC_COMM);
25 void dot_comm_reset(qk_tap_dance_state_t *state, void *user_data) {
26 switch (dot_comm_state.state) {
28 unregister_code(KC_DOT);
32 unregister_code(KC_LCTL);
33 unregister_code(KC_LSFT);
37 unregister_code(KC_COMM);
40 dot_comm_state.state = 0;