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:
@@ -60,12 +60,12 @@ void unregister_shift_f6 (void) {
|
||||
|
||||
void register_ctrl_shift (void) {
|
||||
register_code (KC_LSFT);
|
||||
register_code (KC_LCTRL);
|
||||
register_code (KC_LCTL);
|
||||
}
|
||||
|
||||
void unregister_ctrl_shift (void) {
|
||||
unregister_code (KC_LSFT);
|
||||
unregister_code (KC_LCTRL);
|
||||
unregister_code (KC_LCTL);
|
||||
}
|
||||
|
||||
void register_alt_shift (void) {
|
||||
@@ -177,8 +177,8 @@ void tab_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
case SINGLE_HOLD: register_ctrl_shift(); break;
|
||||
case DOUBLE_HOLD: register_alt_shift(); break; //alt shift on single hold
|
||||
case DOUBLE_TAP: register_code(KC_TAB); unregister_code(KC_TAB); register_code(KC_TAB); break; //tab tab
|
||||
case TRIPLE_TAP: register_code(KC_LSHIFT) ;register_code(KC_ESC); break;
|
||||
case TRIPLE_HOLD: register_code(KC_LSHIFT); register_code(KC_LGUI); break;
|
||||
case TRIPLE_TAP: register_code(KC_LSFT) ;register_code(KC_ESC); break;
|
||||
case TRIPLE_HOLD: register_code(KC_LSFT); register_code(KC_LGUI); break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,8 +188,8 @@ void tab_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
case DOUBLE_HOLD: unregister_alt_shift(); break; //let go of alt shift
|
||||
case DOUBLE_TAP: unregister_code(KC_TAB); break;
|
||||
case SINGLE_HOLD: unregister_ctrl_shift(); break;
|
||||
case TRIPLE_TAP: unregister_code(KC_LSHIFT); unregister_code(KC_ESC); break;
|
||||
case TRIPLE_HOLD: unregister_code(KC_LSHIFT); unregister_code(KC_LGUI); break;
|
||||
case TRIPLE_TAP: unregister_code(KC_LSFT); unregister_code(KC_ESC); break;
|
||||
case TRIPLE_HOLD: unregister_code(KC_LSFT); unregister_code(KC_LGUI); break;
|
||||
}
|
||||
tab_state.state = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user