remove own setting for streak

This commit is contained in:
Christoph Cullmann 2024-06-15 14:53:36 +02:00
parent 9720844cb1
commit 3d75f5c5a5

View file

@ -103,16 +103,3 @@ bool achordion_chord(uint16_t tap_hold_keycode,
on_left_hand(other_record->event.key); on_left_hand(other_record->event.key);
} }
uint16_t achordion_streak_timeout(uint16_t tap_hold_keycode) {
if (IS_QK_LAYER_TAP(tap_hold_keycode)) {
return 0; // Disable streak detection on layer-tap keys.
}
// Otherwise, tap_hold_keycode is a mod-tap key.
const uint8_t mod = mod_config(QK_MOD_TAP_GET_MODS(tap_hold_keycode));
if ((mod & (MOD_LSFT | MOD_RSFT)) != 0) {
return 0; // Disable for Shift mod-tap keys.
} else {
return 100;
}
}