stweil / OSXvnc

VNC Server for macOS
GNU General Public License v3.0
203 stars 67 forks source link

Few Keys not working after Fn+Left/Right Arrow #54

Open WinstonPais opened 1 year ago

WinstonPais commented 1 year ago

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.

stacks13 commented 10 months ago

The issue here is because of

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

stweil commented 10 months ago

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

stacks13 commented 10 months ago

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