diff options
| author | QMK Bot <hello@qmk.fm> | 2021-10-23 06:04:24 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-10-23 06:04:24 +0000 |
| commit | 640a596cca5183c112f45819ec5d9e5c577ac786 (patch) | |
| tree | 823bba7e45ad17477e289a68674848b996003f79 /users/jonavin/jonavin.c | |
| parent | 4614aca211837ddb0f75b0fa29ef4974df4dd57f (diff) | |
| parent | 443d30682761edf90c327a06a6dbf9badde99df5 (diff) | |
| download | qmk_firmware-640a596cca5183c112f45819ec5d9e5c577ac786.tar.gz qmk_firmware-640a596cca5183c112f45819ec5d9e5c577ac786.zip | |
Merge remote-tracking branch 'origin/master' into develop
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) { |
