Tap Dance: remove qk_
prefix (#19313)
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "tap_dances.h"
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
|
||||
};
|
||||
|
@@ -375,7 +375,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void dance_left_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
void dance_left_finished (tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) { //1 tap, move to line left
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
if(keymap_config.swap_lctl_lgui){ //Linux
|
||||
@@ -388,7 +388,7 @@ void dance_left_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void dance_right_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
void dance_right_finished (tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) { // 1 tap, move line right
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
if(keymap_config.swap_lctl_lgui){ //Linux
|
||||
@@ -402,7 +402,7 @@ void dance_right_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
|
||||
//Tap Dance Definitions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_MOVE_BEGIN_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_left_finished, NULL),
|
||||
[TD_MOVE_END_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_right_finished, NULL),
|
||||
[TD_PERIOD_COMMA] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA),
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "tap_dances.h"
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
|
||||
[TD_TAB_CTRLTAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, LCTL(KC_TAB)),
|
||||
[TD_GRV_CTRLGRV] = ACTION_TAP_DANCE_DOUBLE(KC_GRV, LGUI(KC_GRV)),
|
||||
|
Reference in New Issue
Block a user