Fix Caps Word capitalization when used with Combos + Auto Shift. (#17549)
This commit is contained in:
parent
4eeafbebab
commit
6a0d90f81a
9 changed files with 343 additions and 15 deletions
|
@ -123,7 +123,12 @@ bool get_autoshift_shift_state(uint16_t keycode) {
|
|||
/** \brief Restores the shift key if it was cancelled by Auto Shift */
|
||||
static void autoshift_flush_shift(void) {
|
||||
autoshift_flags.holding_shift = false;
|
||||
del_weak_mods(MOD_BIT(KC_LSFT));
|
||||
# ifdef CAPS_WORD_ENABLE
|
||||
if (!is_caps_word_on())
|
||||
# endif // CAPS_WORD_ENABLE
|
||||
{
|
||||
del_weak_mods(MOD_BIT(KC_LSFT));
|
||||
}
|
||||
if (autoshift_flags.cancelling_lshift) {
|
||||
autoshift_flags.cancelling_lshift = false;
|
||||
add_mods(MOD_BIT(KC_LSFT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue