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
|
@ -237,7 +237,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
case SHFT_CAP:
|
||||
if(record->event.pressed){
|
||||
key_timer = timer_read(); // if the key is being pressed, we start the timer.
|
||||
register_code(KC_LSHIFT);
|
||||
register_code(KC_LSFT);
|
||||
} else { // this means the key was just released (tap or "held down")
|
||||
if(timer_elapsed(key_timer) < 152){ // Time in ms, the threshold we pick for counting something as a tap.
|
||||
tap(KC_CAPS);
|
||||
|
@ -253,7 +253,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
#endif
|
||||
}
|
||||
}
|
||||
unregister_code(KC_LSHIFT);
|
||||
unregister_code(KC_LSFT);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue