Browse Source
Adjust tap_code16 to account for TAP_HOLD_CAPS_DELAY (#15635)
Co-authored-by: Ga68 <github.ga68.e@grxme.com>
pull/16110/head
Ga68
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
3 deletions
-
quantum/quantum.c
|
|
@ -93,9 +93,12 @@ __attribute__((weak)) void unregister_code16(uint16_t code) { |
|
|
|
|
|
|
|
__attribute__((weak)) void tap_code16(uint16_t code) { |
|
|
|
register_code16(code); |
|
|
|
#if TAP_CODE_DELAY > 0 |
|
|
|
wait_ms(TAP_CODE_DELAY); |
|
|
|
#endif |
|
|
|
if (code == KC_CAPS_LOCK) { |
|
|
|
wait_ms(TAP_HOLD_CAPS_DELAY); |
|
|
|
} |
|
|
|
else if (TAP_CODE_DELAY > 0) { |
|
|
|
wait_ms(TAP_CODE_DELAY); |
|
|
|
} |
|
|
|
unregister_code16(code); |
|
|
|
} |
|
|
|
|
|
|
|