Remove legacy keycodes, part 5 (#18710)

* `KC_SLCK` -> `KC_SCRL`
* `KC_NLCK` -> `KC_NUM`
This commit is contained in:
Ryan
2022-10-16 08:29:43 +11:00
committed by GitHub
parent 92d7964b28
commit 5e4b076af3
2171 changed files with 2799 additions and 2802 deletions

View File

@@ -156,12 +156,12 @@ layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case NL:
if (!host_keyboard_led_state().num_lock) {
tap_code16(KC_NLCK);
tap_code16(KC_NUM_LOCK);
}
break;
default: // for any other layers, or the default layer
if (host_keyboard_led_state().num_lock) {
tap_code16(KC_NLCK);
tap_code16(KC_NUM_LOCK);
}
break;
}