Fix. macos, workaround fn (#7319)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
c0128d86f4
commit
befac94473
@ -424,7 +424,7 @@ struct VirtualInputState {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
impl VirtualInputState {
|
impl VirtualInputState {
|
||||||
fn new() -> Option<Self> {
|
fn new() -> Option<Self> {
|
||||||
VirtualInput::new(CGEventSourceStateID::Private, CGEventTapLocation::Session)
|
VirtualInput::new(CGEventSourceStateID::CombinedSessionState, CGEventTapLocation::Session)
|
||||||
.map(|virtual_input| Self {
|
.map(|virtual_input| Self {
|
||||||
virtual_input,
|
virtual_input,
|
||||||
capslock_down: false,
|
capslock_down: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user