fix(automouse): prevent non mouse key to leave the automouse layer
Some checks failed
Build firmware / build-firmware (default) (push) Has been cancelled
Build firmware / build-firmware (oryx) (push) Has been cancelled
Unit Tests / test (push) Has been cancelled

This commit is contained in:
Florian Didron
2025-10-16 20:34:40 +07:00
parent b11fa4d633
commit aac4514865

View File

@@ -320,9 +320,6 @@ void auto_mouse_reset_trigger(bool pressed) {
#ifdef LAYER_LOCK_ENABLE
if(is_layer_locked(AUTO_MOUSE_DEFAULT_LAYER)) return;
#endif
if (layer_state_is((AUTO_MOUSE_TARGET_LAYER))) {
layer_off((AUTO_MOUSE_TARGET_LAYER));
};
auto_mouse_reset();
}
auto_mouse_context.timer.delay = timer_read();