mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-03 14:07:46 +00:00
bug: fix auto mouse layer getting stuck with TO keycodes (#417)
This commit is contained in:
@@ -352,6 +352,8 @@ bool process_auto_mouse(uint16_t keycode, keyrecord_t* record) {
|
||||
case QK_TO ... QK_TO_MAX:
|
||||
if (QK_TO_GET_LAYER(keycode) == (AUTO_MOUSE_TARGET_LAYER)) {
|
||||
if (!(record->event.pressed)) auto_mouse_toggle();
|
||||
} else {
|
||||
auto_mouse_context.status.is_toggled = false;
|
||||
}
|
||||
break;
|
||||
// TG((AUTO_MOUSE_TARGET_LAYER))-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user