More aggressively send shift mod for autoshift and caps word (#357)

This commit is contained in:
Drashna Jaelre
2022-08-21 18:05:21 -07:00
committed by GitHub
parent b6657f6a7b
commit f3ac73f6cf
2 changed files with 2 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ __attribute__((weak)) bool get_auto_shift_no_auto_repeat(uint16_t keycode, keyre
__attribute__((weak)) void autoshift_press_user(uint16_t keycode, bool shifted, keyrecord_t *record) {
if (shifted) {
add_weak_mods(MOD_BIT(KC_LSFT));
send_keyboard_report();
}
register_code16((IS_RETRO(keycode)) ? keycode & 0xFF : keycode);
}

View File

@@ -152,6 +152,7 @@ __attribute__((weak)) bool caps_word_press_user(uint16_t keycode) {
case KC_A ... KC_Z:
case KC_MINS:
add_weak_mods(MOD_BIT(KC_LSFT)); // Apply shift to next key.
send_keyboard_report();
return true;
// Keycodes that continue Caps Word, without shifting.