diff --git a/common/config.h b/common/config.h index a2fc32b..fa59575 100644 --- a/common/config.h +++ b/common/config.h @@ -20,6 +20,9 @@ // no auto repeat stuff #define QUICK_TAP_TERM 0 +// use Flow Tap - https://docs.qmk.fm/tap_hold#flow-tap +#define FLOW_TAP_TERM 150 + // // underglow configuration // diff --git a/common/keymap.h b/common/keymap.h index cb254df..e23e08b 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -35,6 +35,23 @@ enum my_layers { #define CC_NAV LT(_NAV, KC_SPC) #define CC_FUN LT(_FUN, KC_EQL) +uint16_t get_flow_tap_term(uint16_t keycode, keyrecord_t* record, + uint16_t prev_keycode) { + if (is_flow_tap_key(keycode) && is_flow_tap_key(prev_keycode)) { + switch (keycode) { + case CC_SYM: + case CC_NUM: + case CC_NAV: + case CC_FUN: + return 0; // filter out thumb keys + + default: + return FLOW_TAP_TERM; // normal timeout + } + } + return 0; // Disable Flow Tap. +} + // our keymap const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {