summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-08-21 18:05:21 -0700
committerGitHub <noreply@github.com>2022-08-22 10:05:21 +0900
commitf3ac73f6cf015dda52eb293f72e1656b6283f3a9 (patch)
treeae0ce3433ac94d7f760b3e7c76254a90499758e2 /quantum
parentb6657f6a7b8cf244eeac546c334377f5430e7b0c (diff)
More aggressively send shift mod for autoshift and caps word (#357)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_auto_shift.c1
-rw-r--r--quantum/process_keycode/process_caps_word.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_auto_shift.c b/quantum/process_keycode/process_auto_shift.c
index 2bf0146a77..e568c93e79 100644
--- a/quantum/process_keycode/process_auto_shift.c
+++ b/quantum/process_keycode/process_auto_shift.c
@@ -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);
}
diff --git a/quantum/process_keycode/process_caps_word.c b/quantum/process_keycode/process_caps_word.c
index b1415c33b5..4eeb6eb722 100644
--- a/quantum/process_keycode/process_caps_word.c
+++ b/quantum/process_keycode/process_caps_word.c
@@ -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.