1
0
Fork 0

Remove legacy keycodes, part 2 (#18660)

* `KC_SYSREQ` -> `KC_SYRQ`

And one `KC_ALT_ERASE` -> `KC_ERAS`

* `KC_NONUS_BSLASH` -> `KC_NUBS`

* `KC_NUMLOCK` -> `KC_NUM`

* `KC_CLCK` -> `KC_CAPS`

* `KC_SCROLLLOCK` -> `KC_SCRL`

* `KC_LBRACKET` -> `KC_LBRC`

* `KC_RBRACKET` -> `KC_RBRC`

* `KC_CAPSLOCK` -> `KC_CAPS`
This commit is contained in:
Ryan 2022-10-11 06:06:26 +11:00 committed by GitHub
parent c87bc92908
commit c6f1b594a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
267 changed files with 529 additions and 538 deletions

View file

@ -56,7 +56,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case TG(1):
if (record->event.pressed) {
tap_code(KC_NUMLOCK);
tap_code(KC_NUM_LOCK);
return true;
}
break;
@ -67,7 +67,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
void matrix_init_user (void) {
if (!host_keyboard_led_state ().num_lock) {
tap_code(KC_NUMLOCK);
tap_code(KC_NUM_LOCK);
}
}