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

cannot get hs.eventtap to work #248

Open
dxlr8r opened this issue Nov 18, 2021 · 1 comment
Open

cannot get hs.eventtap to work #248

dxlr8r opened this issue Nov 18, 2021 · 1 comment

Comments

@dxlr8r
Copy link

dxlr8r commented Nov 18, 2021

Yesterday FnMate worked, today it does not after applying a security update to Catalina (10.15.7).

My config:

hs.loadSpoon("FnMate")

hello = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(e)
  print("hello")
end):start()

Edit: Both FnMate and my small demo below gives no result when trying to press combinations. Like fn-h in FnMate, simply just results in a regular h. And there is no message to the console from the hello statement at the bottom.

Examples from the documentation, like:

hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function()
  hs.alert.show("Hello World!")
end)

Works perfectly.

Edit: I also made sure:

Click on the Security & Privacy icon, then the Privacy tab and then Accessibility from the list. You should ensure that Hammerspoon is present in this list and is ticked.

As well as:

tccutil reset All org.hammerspoon.Hammerspoon

@dxlr8r
Copy link
Author

dxlr8r commented Dec 9, 2021

After updating to 12.0.1 it seems to work again.

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

1 participant