diff --git a/users/t4corun/features/taphold.c b/users/t4corun/features/taphold.c index 2f825f9e..eb113454 100644 --- a/users/t4corun/features/taphold.c +++ b/users/t4corun/features/taphold.c @@ -52,21 +52,21 @@ bool process_tap_hold_key(keyrecord_t* record, uint16_t tap_keycode, uint16_t ho // https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press - if ( record->tap.count > 0 ) { // Key is being tapped + if (record->tap.count > 0) { // Key is being tapped // register on press, unregister on release record->event.pressed ? register_code16(tap_keycode) : unregister_code16(tap_keycode); } else { // Key is being held - switch ( mode ) { + switch (mode) { case HOLD_BRACKETS: - insert_brackets(tap_keycode, hold_keycode, WAIT_DELAY); + record->event.pressed ? insert_brackets(tap_keycode, hold_keycode, WAIT_DELAY) : 0; break; case HOLD_DOUBLETP: - double_tap(tap_keycode, WAIT_DELAY); + record->event.pressed ? double_tap(tap_keycode, WAIT_DELAY) : 0; break; default: diff --git a/users/t4corun/features/tapping.c b/users/t4corun/features/tapping.c index e85dc22d..4d99e244 100644 --- a/users/t4corun/features/tapping.c +++ b/users/t4corun/features/tapping.c @@ -1,10 +1,16 @@ #include "tapping.h" uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case NAV_0: + return TAPPING_TERM + 60; + default: //uprintf("tapping term: %d \n", TAPPING_TERM); return TAPPING_TERM; + } + } \ No newline at end of file