OSXvnc
OSXvnc copied to clipboard
Few Keys not working after Fn+Left/Right Arrow
After pressing Fn+Left arrow or Fn+Right arrow, On pressing the m
key the apple icon on the top left gets highlighted.
FYI: Can see this behaviour on my local mac as well on pressing Fn+M. but on clicking somewhere else i can reset it. This is not happening via VNC.
The issue here is because of
- Accessibility shortcuts added since Monterey: https://gist.github.com/lukaskubanek/df1cf3287e30095b7265da639b6b43ae
- The Obj C implementation of
CGEventPost
,CGEventSourceCreate
when used withkCGEventSourceStatePrivate
andkCGHIDEventTap
This can be fixed by making use of kCGEventSourceStateHIDSystemState
as the event source when creating events for keys with key code > 96
@stacks13, thank you for that information. It would be great if you could make a pull request with the required code changes.
Have created this PR: https://github.com/stweil/OSXvnc/pull/57 @stweil Please review