diff options
Diffstat (limited to 'common/achordion.h')
-rw-r--r-- | common/achordion.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/achordion.h b/common/achordion.h index e6bb534..dfa8dc2 100644 --- a/common/achordion.h +++ b/common/achordion.h @@ -53,6 +53,27 @@ #include "quantum.h" +/** + * Suppress tap-hold mods within a *typing streak* by defining + * ACHORDION_STREAK. This can help preventing accidental mod + * activation when performing a fast tapping sequence. + * This is inspired by https://sunaku.github.io/home-row-mods.html#typing-streaks + * + * Enable with: + * + * #define ACHORDION_STREAK + * + * Adjust the maximum time between key events before modifiers can be enabled + * by defining the following callback in your keymap.c: + * + * uint16_t achordion_streak_timeout(uint16_t tap_hold_keycode) { + * return 100; // Default of 100 ms. + * } + */ +#ifdef ACHORDION_STREAK +uint16_t achordion_streak_timeout(uint16_t tap_hold_keycode); +#endif + #ifdef __cplusplus extern "C" { #endif |