Fix repeat key behavior after typing comma

Shift+Period produces comma via key override, but the repeat key was
tracking the original Shift+Period instead of the output comma. Now
manually sets the last keycode to comma for correct repeat behavior.
This commit is contained in:
Drew Neil 2026-01-11 00:18:42 +00:00
commit 9a16d61af5

View file

@ -472,6 +472,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
}
}
// Handle Shift-only key repeat behavior for key overrides
// Key overrides happen after repeat key tracking, so we manually
// set what repeat should remember (the overridden output, not Shift+key)
if (shift_held && !alt_held && !(all_mods & MOD_MASK_CG)) {
switch(keycode) {
case KC_DOT: // Shift+. → ,
set_last_keycode(KC_COMMA);
set_last_mods(0);
break;
}
}
}
return true; // Continue normal processing