diff options
author | jonavin <71780717+Jonavin@users.noreply.github.com> | 2021-10-23 02:04:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 23:04:08 -0700 |
commit | 443d30682761edf90c327a06a6dbf9badde99df5 (patch) | |
tree | 61abd676087e4747c06c79640946f3f6e61baa0a /users/jonavin/jonavin.c | |
parent | 09daafd4898db3bfb206335b8a33d6ad87c3e58b (diff) | |
download | qmk_firmware-443d30682761edf90c327a06a6dbf9badde99df5.tar.gz qmk_firmware-443d30682761edf90c327a06a6dbf9badde99df5.zip |
[Keymap] Jonavin userspace keymap updates INVERT_NUMLOCK_INDICATOR (#14880)
Co-authored-by: Jonavin <=>
Diffstat (limited to 'users/jonavin/jonavin.c')
-rw-r--r-- | users/jonavin/jonavin.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c index 1a0760ea8..367601dfb 100644 --- a/users/jonavin/jonavin.c +++ b/users/jonavin/jonavin.c | |||
@@ -341,6 +341,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
341 | }; | 341 | }; |
342 | 342 | ||
343 | 343 | ||
344 | uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { | ||
345 | switch (keycode) { | ||
346 | case KC_SFTUP: | ||
347 | return 300; | ||
348 | case KC_RAISESPC: | ||
349 | case KC_LOWERSPC: | ||
350 | return 450; | ||
351 | default: | ||
352 | return TAPPING_TERM; | ||
353 | } | ||
354 | } | ||
355 | |||
344 | // Turn on/off NUM LOCK if current state is different | 356 | // Turn on/off NUM LOCK if current state is different |
345 | void activate_numlock(bool turn_on) { | 357 | void activate_numlock(bool turn_on) { |
346 | if (IS_HOST_LED_ON(USB_LED_NUM_LOCK) != turn_on) { | 358 | if (IS_HOST_LED_ON(USB_LED_NUM_LOCK) != turn_on) { |