Skip to content
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

There is no way to "enable access for assistive devices" on newer Mac OSX versions causing key listeners to not work. #8

Open
mgroth0 opened this issue Jan 8, 2022 · 1 comment

Comments

@mgroth0
Copy link

mgroth0 commented Jan 8, 2022

As the title suggests, I'm running into the error:

Jan 07, 2022 7:17:46 PM org.simplenativehooks.AbstractNativeHookEventProcessor start
INFO: OSX Hook: running command $/Users/matt/Desktop/app/resources/nativehooks/osx/RepeatHook.out
Jan 07, 2022 7:17:46 PM org.simplenativehooks.osx.GlobalOSXEventOchestrator processStderr
INFO: failed to create event tap
Jan 07, 2022 7:17:46 PM org.simplenativehooks.osx.GlobalOSXEventOchestrator processStdout
INFO: Setting up...
Jan 07, 2022 7:17:46 PM org.simplenativehooks.osx.GlobalOSXEventOchestrator processStderr
INFO: you need to enable "Enable access for assitive devices" in Universal Access preference panel.

However, those directions are out of date. There is no such checkbox to enable access for assistive devices any more. There is a way to enable access for individual apps, in System Preferences > Security & Privacy > Privacy > Accesibility. This list is populated automatically but you can also add individual apps. After running this, there is no new checkbox in the list. I tried adding "java" to the list and checking that, but the issue still persists.

@hptruong93
Copy link
Contributor

System Preferences > Security & Privacy > Privacy > Accesibility is indeed the right way to enable this.

It's currently working on my Mac and I'm using macOS 12.1. I have the following apps enabled:
Library > Java > JavaVirtualMachines > jdk-10.0.1.jdk > Contents > Home > bin
Library > Internet > Plug-Ins > JavaAppletPlugin.plugin > Contents > Home > bin
Terminal (the terminal itself)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants