More aggressively send shift mod for autoshift and caps word (#357)
This commit is contained in:
@@ -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) {
|
__attribute__((weak)) void autoshift_press_user(uint16_t keycode, bool shifted, keyrecord_t *record) {
|
||||||
if (shifted) {
|
if (shifted) {
|
||||||
add_weak_mods(MOD_BIT(KC_LSFT));
|
add_weak_mods(MOD_BIT(KC_LSFT));
|
||||||
|
send_keyboard_report();
|
||||||
}
|
}
|
||||||
register_code16((IS_RETRO(keycode)) ? keycode & 0xFF : keycode);
|
register_code16((IS_RETRO(keycode)) ? keycode & 0xFF : keycode);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ __attribute__((weak)) bool caps_word_press_user(uint16_t keycode) {
|
|||||||
case KC_A ... KC_Z:
|
case KC_A ... KC_Z:
|
||||||
case KC_MINS:
|
case KC_MINS:
|
||||||
add_weak_mods(MOD_BIT(KC_LSFT)); // Apply shift to next key.
|
add_weak_mods(MOD_BIT(KC_LSFT)); // Apply shift to next key.
|
||||||
|
send_keyboard_report();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Keycodes that continue Caps Word, without shifting.
|
// Keycodes that continue Caps Word, without shifting.
|
||||||
|
|||||||
Reference in New Issue
Block a user