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:
@@ -239,10 +239,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
if (keyboard_report->mods & shift) {
|
||||
if (keyboard_report->mods & MOD_BIT(KC_LSFT)) {
|
||||
unregister_code(KC_LSHIFT);
|
||||
unregister_code(KC_LEFT_SHIFT);
|
||||
}
|
||||
else {
|
||||
unregister_code(KC_RSHIFT);
|
||||
unregister_code(KC_RIGHT_SHIFT);
|
||||
}
|
||||
register_code(KC_DEL);
|
||||
}
|
||||
@@ -260,10 +260,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
if (keyboard_report->mods & shift) {
|
||||
if (keyboard_report->mods & MOD_BIT(KC_LSFT)) {
|
||||
unregister_code(KC_LSHIFT);
|
||||
unregister_code(KC_LEFT_SHIFT);
|
||||
}
|
||||
else {
|
||||
unregister_code(KC_RSHIFT);
|
||||
unregister_code(KC_RIGHT_SHIFT);
|
||||
}
|
||||
register_code(KC_BACKSLASH);
|
||||
}
|
||||
|
Reference in New Issue
Block a user