bitgapp / Cursr

KVM - Share Mouse & Keyboard between multiple computers. Custom borders and more!
https://cursr.app
Other
188 stars 4 forks source link

macOS: keyboard does not work when macOS lockscreen is displayed #59

Open warpdesign opened 7 months ago

warpdesign commented 7 months ago

Describe the Bug/Issue

I am using Cursr with a mac and a PC with Windows. When the mac's lockscreen appears, I can still use the mac's mouse on the Windows computer, but the mac's keyboard doesn't work anymore: typing something appears on the mac's lockscreen instead of the Windows where the mouse is.

Steps to Reproduce

  1. Connect a Mac and a Windows PC
  2. Make sure the Mac's keyboard can be used to control the Windows PC
  3. Make the Mac's lockscreen appear (cmd+l)
  4. Move the Mac's mouse so that it can control the PC's mouse
  5. Attempt to type some text

Expected Behavior

The text appears on Windows.

Your Environment

ragauskl commented 7 months ago

Functionality when lockscreen is active is not officially supported yet, but it is in the to-do list. Mouse currently works but it was not intended/implemented, it's simply because macOS still allows mouse events to pass, that also means keyboard events also happen but macOS does not allow Cursr to capture/listen on them when lockscreen is active.

Cursr will likely require elevated permissions to do so, but I haven't looked into this implementation yet and cannot guarantee it. You can try to run it with elevated permissions and see if that solves the issue. But when not necessary I don't recommend running Cursr in elevated permissions as that makes it harder to shut it down in case of an issue, with proper implementation I may be able to require elevated permissions only when necessary making it safer to use in case of an issue