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:
parent
39c22f5cf5
commit
74223c34a9
553 changed files with 1139 additions and 1151 deletions
|
@ -22,12 +22,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
keystroke = random_keycode();
|
||||
if (rand() % 2 > 0) {
|
||||
shift_pressed = 1;
|
||||
register_code(KC_LSHIFT);
|
||||
register_code(KC_LSFT);
|
||||
}
|
||||
register_code(keystroke);
|
||||
} else {
|
||||
if (shift_pressed > 0) {
|
||||
unregister_code(KC_LSHIFT);
|
||||
unregister_code(KC_LSFT);
|
||||
}
|
||||
unregister_code(keystroke);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue