skeletyl: test tap dance

This commit is contained in:
Michael Grote 2024-03-15 14:41:45 +01:00
parent 9a3bff531a
commit 3be32a8a3a
2 changed files with 13 additions and 1 deletions
keyboards/bastardkb/skeletyl/keymaps/quotengrote

View file

@ -39,3 +39,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_X:
if (record->tap.count && record->event.pressed) {
tap_code16(C(KC_X)); // Intercept tap function to send Ctrl-C
} else if (record->event.pressed) {
tap_code16(C(LCTL(KC_X))); // Intercept hold function to send Ctrl-V
}
return false;
}
return true;
}

View file

@ -12,7 +12,6 @@
## ToDo
- daumentasten
- tapdances
- combos
- kurze keycodes