[Keymap] Jonavin userspace keymap updates INVERT_NUMLOCK_INDICATOR (#14880)
Co-authored-by: Jonavin <=>
This commit is contained in:
parent
09daafd489
commit
443d306827
14 changed files with 93 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue