Ask for Permission for the Hotkeys on Mac
savage13 opened this issue · comments
I made an attempt to get Hotkeys working on Mac. The call to CGEventTapCreate()
returns null as it does not have permission.
You can ask the system to show the Security and Privacy preferences (in System Preferences) by following
- https://stackoverflow.com/a/24100470 or
- https://developer.apple.com/forums/thread/109283 (working C program)
Once the system is granted permission, the HotKeys appear to work properly.
To call these mac functions from rust requires a set of definitions for CFDictionary and friends added to