mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-19 15:37:33 +08:00
fix: enigo, macos, F11 (#11371)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@ -142,7 +142,8 @@ impl Enigo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn post(&self, event: CGEvent) {
|
fn post(&self, event: CGEvent) {
|
||||||
if !self.ignore_flags {
|
// event.set_flags(CGEventFlags::CGEventFlagNull); will cause `F11` not working. no idea why.
|
||||||
|
if !self.ignore_flags && self.flags != CGEventFlags::CGEventFlagNull {
|
||||||
event.set_flags(self.flags);
|
event.set_flags(self.flags);
|
||||||
}
|
}
|
||||||
event.set_integer_value_field(EventField::EVENT_SOURCE_USER_DATA, ENIGO_INPUT_EXTRA_VALUE);
|
event.set_integer_value_field(EventField::EVENT_SOURCE_USER_DATA, ENIGO_INPUT_EXTRA_VALUE);
|
||||||
|
Reference in New Issue
Block a user