fix(automouse): make sure KC_NO do not fire layer 0 mappings on automouse layer (#419)

This commit is contained in:
Florian Didron
2025-09-09 09:49:55 +07:00
committed by GitHub
parent c39a26ec9d
commit 82bfceccf6

View File

@@ -343,7 +343,8 @@ bool process_auto_mouse(uint16_t keycode, keyrecord_t* record) {
if (!(AUTO_MOUSE_ENABLED)) return true; if (!(AUTO_MOUSE_ENABLED)) return true;
switch (keycode) { switch (keycode) {
// Skip Mod keys and layer lock to avoid layer reset // Skip Mod keys, KC_NO, and layer lock to avoid layer reset
case KC_NO:
case KC_LEFT_CTRL ... KC_RIGHT_GUI: case KC_LEFT_CTRL ... KC_RIGHT_GUI:
case QK_MODS ... QK_MODS_MAX: case QK_MODS ... QK_MODS_MAX:
case QK_LLCK: case QK_LLCK: