mirror of
https://github.com/qmk/qmk_userspace.git
synced 2026-03-07 00:01:09 -05:00
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:
parent
4d8d98e866
commit
9a16d61af5
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue