From befac9447344841b5336d42b63dfbe359d2e3cfc Mon Sep 17 00:00:00 2001 From: fufesou Date: Tue, 5 Mar 2024 11:31:41 +0800 Subject: [PATCH] Fix. macos, workaround fn (#7319) Signed-off-by: fufesou --- src/server/input_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 79443b1f22ce..7d1392bbf302 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -424,7 +424,7 @@ struct VirtualInputState { #[cfg(target_os = "macos")] impl VirtualInputState { fn new() -> Option { - VirtualInput::new(CGEventSourceStateID::Private, CGEventTapLocation::Session) + VirtualInput::new(CGEventSourceStateID::CombinedSessionState, CGEventTapLocation::Session) .map(|virtual_input| Self { virtual_input, capslock_down: false,