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

@@ -43,7 +43,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
layer_invert(L_NUMPAD);
bool num_lock = host_keyboard_leds() & 1<<USB_LED_NUM_LOCK;
if (num_lock != (bool)IS_LAYER_ON(L_NUMPAD)) {
tap_code(KC_NLCK); // Toggle Num Lock to match layer state.
tap_code(KC_NUM_LOCK); // Toggle Num Lock to match layer state.
}
}
return false;