[fix] preserve Windows modifier state across keyboard capture recovery, refs #142

This commit is contained in:
dijunkun
2026-11-06 15:00:59 +08:00
parent 43b1d8fecb
commit 9ca4c3c7fe
3 changed files with 255 additions and 7 deletions
+12
View File
@@ -198,6 +198,18 @@ function setup_targets()
set_default(false)
add_files("apps/desktop/tests/windows_mouse_controller_safety_test.cpp")
if is_os("windows") then
target("windows_keyboard_capturer_test")
set_kind("binary")
set_default(false)
add_includedirs("apps/desktop/src/platform/windows/input",
"apps/desktop/src/platform/common/input",
"apps/desktop/src/device_controller", "apps/desktop/src/common",
"apps/desktop/src/log", "libs/wire/include")
add_files("apps/desktop/tests/windows_keyboard_capturer_test.cpp")
add_syslinks("user32")
end
target("windows_sas_guard_test")
set_kind("binary")
set_default(false)