Merge pull request 'feat(q5_max): add per-key tapping term with 175ms for home/end tap-dance' (#15) from feat/tap-term into main

This commit was merged in pull request #15.
This commit is contained in:
2026-04-11 05:01:37 +00:00
2 changed files with 14 additions and 0 deletions
@@ -16,3 +16,8 @@
// Always resolve combo keycodes from BASE (layer 0) so the
// COMM+DOT+SLSH fallback combo fires regardless of the active layer.
#define COMBO_ONLY_FROM_LAYER 0
// Default tapping term for mod-tap, layer-tap, and tap-dance keys.
#define TAPPING_TERM 200
// Allow per-key overrides via get_tapping_term() in keymap.c.
#define TAPPING_TERM_PER_KEY
@@ -438,6 +438,15 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
#endif // RGB_MATRIX_ENABLE
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case TD(TD_HOME_END):
return 175;
default:
return TAPPING_TERM;
}
}
// Tap Dance definitions
tap_dance_action_t tap_dance_actions[] = {
// Tap once for Home, twice for End