fix(caps-mod): fix errant modifier taps and dummy keypress for combos #10

Merged
rootiest merged 4 commits from fix/caps-mod into main 2026-04-11 04:52:42 +00:00
Showing only changes of commit d8dccd67a6 - Show all commits
@@ -176,8 +176,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} else {
uint8_t mods = get_mods();
if (mods & MOD_MASK_GUI) {
// Clear GUI before acting so the OS doesn't see a GUI tap
del_mods(MOD_MASK_GUI);
send_keyboard_report();
autocorrect_toggle();
} else if (mods & MOD_MASK_ALT) {
// Clear Alt before acting so the OS doesn't see an Alt tap
del_mods(MOD_MASK_ALT);
send_keyboard_report();
caps_word_toggle();
} else if (mods & MOD_MASK_SHIFT) {
tap_code(KC_CAPS); // Shift still held → host sees Shift+CapsLock (toggles on most OSes)