1
0
Fork 0

[Keymap] Jonavin userspace keymap updates INVERT_NUMLOCK_INDICATOR (#14880)

Co-authored-by: Jonavin <=>
This commit is contained in:
jonavin 2021-10-23 02:04:08 -04:00 committed by GitHub
parent 09daafd489
commit 443d306827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 93 additions and 25 deletions

View file

@ -341,6 +341,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
};
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_SFTUP:
return 300;
case KC_RAISESPC:
case KC_LOWERSPC:
return 450;
default:
return TAPPING_TERM;
}
}
// Turn on/off NUM LOCK if current state is different
void activate_numlock(bool turn_on) {
if (IS_HOST_LED_ON(USB_LED_NUM_LOCK) != turn_on) {