Hammerspoon / Hammerspoon/Spoons

cannot get hs.eventtap to work

Open
#248 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
567
Forks
171
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.