-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with macOS Mojave 10.14 #8
Comments
Adding accessibility permissions to the app using it remedies the problem. @kapetan is this to be expected? |
I switched to using the Cocoa/NSEvent monitor API (as opposed to CGEventTap) in my fork. That works fine without accessibility permissions, but it has one difference. When the app window is focused, @kapetan Would you be interested in a PR that adds the NSEvent implementation as an alternative? Maybe we could have something like |
Here is my fork as a npm module: https://www.npmjs.com/package/osx-mouse-cocoa |
Calling CGEventTapCreate will cause the system to be stuck, but will not fail. ^_^|| |
Nice work @poiru. Maybe it makes sense to merge it into this module, I'll have a look when I find the time. But for now I'm happy with it being a separate module. |
With latest master (
247d83e
, tag:v1.3.1
), running the tests + moving the mouse fails to produce any output unlike prior version of macOS 10.13.I've been unable to find a workaround, other than manually asking for accessibility permissions which according to Apple shouldn't be necessary for "listenOnly" taps.
Output when running test and moving mouse:
Output when giving full access via "accessibility" (to Terminal.app which I'm running the command through):
The text was updated successfully, but these errors were encountered: