From aac45148656197a04f9b7e52eb4e18d12083986a Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Thu, 16 Oct 2025 20:34:40 +0700 Subject: [PATCH] fix(automouse): prevent non mouse key to leave the automouse layer --- quantum/pointing_device/pointing_device_auto_mouse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/quantum/pointing_device/pointing_device_auto_mouse.c b/quantum/pointing_device/pointing_device_auto_mouse.c index 3cfb0ed464..c1f4c9f668 100644 --- a/quantum/pointing_device/pointing_device_auto_mouse.c +++ b/quantum/pointing_device/pointing_device_auto_mouse.c @@ -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();