Remove legacy international keycodes (#18588)

This commit is contained in:
Ryan 2022-10-09 14:51:09 +11:00 committed by GitHub
parent 806b30d4ba
commit 4f44e2ccec
32 changed files with 101 additions and 101 deletions

View file

@ -119,13 +119,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
// tap_code(KC_VOLU);
if(keymap_config.swap_lalt_lgui==false){
tap_code(KC_LANG2);
tap_code(KC_LNG2);
}else {
tap_code16(A(KC_GRV));
}
} else {
if(keymap_config.swap_lalt_lgui==false){
tap_code(KC_LANG1);
tap_code(KC_LNG1);
} else {
tap_code16(A(KC_GRV));
}

View file

@ -154,23 +154,23 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case EISU:
if (record->event.pressed) {
if(keymap_config.swap_lalt_lgui==false){
register_code(KC_LANG2);
register_code(KC_LNG2);
} else {
SEND_STRING(SS_LALT("`"));
}
} else {
unregister_code(KC_LANG2);
unregister_code(KC_LNG2);
}
return false;
case KANA:
if (record->event.pressed) {
if(keymap_config.swap_lalt_lgui==false){
register_code(KC_LANG1);
register_code(KC_LNG1);
} else {
SEND_STRING(SS_LALT("`"));
}
} else {
unregister_code(KC_LANG1);
unregister_code(KC_LNG1);
}
return false;
case RGBRST: