OSXvnc icon indicating copy to clipboard operation
OSXvnc copied to clipboard

Few Keys not working after Fn+Left/Right Arrow

Open WinstonPais opened this issue 1 year ago • 3 comments

After pressing Fn+Left arrow or Fn+Right arrow, On pressing the m key the apple icon on the top left gets highlighted. image

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.

WinstonPais avatar Apr 17 '23 13:04 WinstonPais

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 with kCGEventSourceStatePrivate and kCGHIDEventTap

This can be fixed by making use of kCGEventSourceStateHIDSystemState as the event source when creating events for keys with key code > 96

stacks13 avatar Nov 22 '23 06:11 stacks13

@stacks13, thank you for that information. It would be great if you could make a pull request with the required code changes.

stweil avatar Nov 22 '23 07:11 stweil

Have created this PR: https://github.com/stweil/OSXvnc/pull/57 @stweil Please review

stacks13 avatar Nov 23 '23 16:11 stacks13