Remove legacy keycodes, part 6 (#18740)

* `KC_RSHIFT` -> `KC_RSFT`

* `KC_RCTRL` -> `KC_RCTL`

* `KC_LSHIFT` -> `KC_LSFT`

* `KC_LCTRL` -> `KC_LCTL`
This commit is contained in:
Ryan 2022-10-17 00:14:40 +11:00 committed by GitHub
parent 39c22f5cf5
commit 74223c34a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
553 changed files with 1139 additions and 1151 deletions

View file

@ -103,10 +103,10 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
// Cannot use LM(L_RCTRL, MOD_RCTL) because it sends LCtrl instead of RCtrl
case RCTRL:
if (record->event.pressed) {
register_code(KC_RCTRL);
register_code(KC_RCTL);
layer_on(L_RCTRL);
} else {
unregister_code(KC_RCTRL);
unregister_code(KC_RCTL);
layer_off(L_RCTRL);
}
break;