summaryrefslogtreecommitdiff
path: root/keyboards/handwired/frenchdev/keymaps/default/keymap.c
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/handwired/frenchdev/keymaps/default/keymap.c
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/handwired/frenchdev/keymaps/default/keymap.c')
-rw-r--r--keyboards/handwired/frenchdev/keymaps/default/keymap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/handwired/frenchdev/keymaps/default/keymap.c b/keyboards/handwired/frenchdev/keymaps/default/keymap.c
index 19d4a8b0b9..e5a5dcc6c1 100644
--- a/keyboards/handwired/frenchdev/keymaps/default/keymap.c
+++ b/keyboards/handwired/frenchdev/keymaps/default/keymap.c
@@ -176,33 +176,33 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void hold_shift(void) {
shift_count = shift_count + 1;
- register_code(KC_LSHIFT);
+ register_code(KC_LSFT);
}
void release_shift(void) {
shift_count = shift_count - 1;
if(shift_count <= 0){
- unregister_code(KC_LSHIFT);
+ unregister_code(KC_LSFT);
shift_count = 0;
}
}
void press_space(void) {
- if(shift_count > 0) unregister_code (KC_LSHIFT);
+ if(shift_count > 0) unregister_code (KC_LSFT);
tap_code(KC_SPACE);
- if(shift_count > 0) register_code (KC_LSHIFT);
+ if(shift_count > 0) register_code (KC_LSFT);
}
void press_enter(void) {
- if(shift_count > 0) unregister_code (KC_LSHIFT);
+ if(shift_count > 0) unregister_code (KC_LSFT);
tap_code (KC_ENT);
- if(shift_count > 0) register_code (KC_LSHIFT);
+ if(shift_count > 0) register_code (KC_LSFT);
}
void press_underscore(void) {
- if(shift_count > 0) unregister_code (KC_LSHIFT);
+ if(shift_count > 0) unregister_code (KC_LSFT);
tap_code ((unsigned char) BP_UNDS);
- if(shift_count > 0) register_code (KC_LSHIFT);
+ if(shift_count > 0) register_code (KC_LSFT);
}
// Bleah globals need to be initialized.