Skip to content

How to bind pause/break key? #2905

Answered by royathan
liamjones asked this question in Q&A
Discussion options

You must be logged in to vote

The Pause key on my keyboard (Logitech G915) emits F15 when pressed on MacOS.

So the following works for me:

hs.hotkey.bind(nil, "F15", function()
  hs.alert.show("Hello World!")
end)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@liamjones
Comment options

Answer selected by liamjones
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants