mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-10 18:06:01 +02:00
fix: enigo, macos, F11 (#11371)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
62a83ad319
commit
2d403913b5
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ impl Enigo {
|
|||
}
|
||||
|
||||
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_integer_value_field(EventField::EVENT_SOURCE_USER_DATA, ENIGO_INPUT_EXTRA_VALUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue