skeletyl: fix tap dances
Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
ae9c29d286
commit
1c18f0d741
1 changed files with 6 additions and 6 deletions
|
@ -44,37 +44,37 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case LT(0,KC_X): // "LT(0,KC_X)" is the keycode that must be mapped
|
case LT(0,KC_X): // "LT(0,KC_X)" is the keycode that must be mapped
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(C(KC_X)); // Intercept hold function to send Ctrl-X
|
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true; // Return true for normal processing of tap keycode
|
return true; // Return true for normal processing of tap keycode
|
||||||
case LT(0,KC_C):
|
case LT(0,KC_C):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(C(KC_C));
|
tap_code16(LCTL(KC_C));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(0,KC_V):
|
case LT(0,KC_V):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(C(KC_V));
|
tap_code16(LCTL(KC_V));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(0,KC_Q):
|
case LT(0,KC_Q):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(KC_RALT(KC_Q));
|
tap_code16(RALT(KC_Q));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(0,KC_F):
|
case LT(0,KC_F):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(KC_RALT(KC_E));
|
tap_code16(RALT(KC_E));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(0,KC_A):
|
case LT(0,KC_A):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(KC_TAB));
|
tap_code16(KC_TAB);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue