Tap Dance: remove qk_ prefix (#19313)

This commit is contained in:
Ryan
2022-12-15 07:40:25 +11:00
committed by GitHub
parent 83e8e5845a
commit 1978007fae
298 changed files with 1327 additions and 1327 deletions

View File

@@ -25,11 +25,11 @@ enum keyboard_layers{
};
// Tap Dance Declarations
void td_ctrl (qk_tap_dance_state_t *state, void *user_data);
void td_ctrl (tap_dance_state_t *state, void *user_data);
enum tap_dance { CTRL = 0, BASE = 1 };
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
// Tap once for standard key on base layer, twice to toggle to control layer
[CTRL] = ACTION_TAP_DANCE_FN(td_ctrl),
[BASE] = ACTION_TAP_DANCE_LAYER_MOVE(_______, _BASE)};
@@ -105,7 +105,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// Below works around TD() not running key press through process_record_user.
// Fixes bug of CTRL layer move key not being wrapped in by modifier on single tap
void td_ctrl (qk_tap_dance_state_t *state, void *user_data) {
void td_ctrl (tap_dance_state_t *state, void *user_data) {
if (state->count == 1) {
register_code(KC_WRAP);
tap_code(KC_P);