summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/zach
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-17 00:14:40 +1100
committerGitHub <noreply@github.com>2022-10-16 14:14:40 +0100
commit74223c34a969c0877bde035c721c21a1f25890fa (patch)
tree1daea9db13a0adb529e5aba4aa1e6f893cb7ed8c /keyboards/planck/keymaps/zach
parent39c22f5cf5011427ece26c510d0b1ab42edf34db (diff)
Remove legacy keycodes, part 6 (#18740)
* `KC_RSHIFT` -> `KC_RSFT` * `KC_RCTRL` -> `KC_RCTL` * `KC_LSHIFT` -> `KC_LSFT` * `KC_LCTRL` -> `KC_LCTL`
Diffstat (limited to 'keyboards/planck/keymaps/zach')
-rw-r--r--keyboards/planck/keymaps/zach/zach_common_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c
index 5de64de955..13034897cf 100644
--- a/keyboards/planck/keymaps/zach/zach_common_functions.c
+++ b/keyboards/planck/keymaps/zach/zach_common_functions.c
@@ -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;