Remove legacy keycodes, part 5 (#18710)
* `KC_SLCK` -> `KC_SCRL` * `KC_NLCK` -> `KC_NUM`
This commit is contained in:
@@ -126,7 +126,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
} else { // This assumes that the Linux Compose has been set to Scroll Lock
|
||||
if (record->event.pressed) {
|
||||
tap_code16(KC_SLCK);
|
||||
tap_code16(KC_SCRL);
|
||||
SEND_STRING("c/");
|
||||
}
|
||||
}
|
||||
@@ -194,17 +194,17 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
case JM_NSLC:
|
||||
if (left_shift_down || right_shift_down) {
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_NLCK);
|
||||
register_code(KC_NUM_LOCK);
|
||||
}
|
||||
else {
|
||||
unregister_code(KC_NLCK);
|
||||
unregister_code(KC_NUM_LOCK);
|
||||
}
|
||||
} else {
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_SLCK);
|
||||
register_code(KC_SCRL);
|
||||
}
|
||||
else {
|
||||
unregister_code(KC_SLCK);
|
||||
unregister_code(KC_SCRL);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user