Hi, ziqiao
thanks for your reply.
I am developing a vnc client on macOS, so I need to monitor the keyboard events if needed.
When the app connected to a vnc server with a new window, there's a toolbar item at the window's toolbar, which I called it 'Input toolbar item'. If this input toolbar item was toggled, the app should capture all kind of input events including keyboard, trackpad and mouse events and send those events to the vnc server via the RFB protocol. For example, when I pressed 'CMD + Space' keys within the vnc window, I need to send them to the vnc server rather than toggle the spotlight search on the host machine.
Any suggestions for this?
Thanks,
Topic:
UI Frameworks
SubTopic:
AppKit