How to use "+" with hs.hotkey.bind()

12 views
Skip to first unread message

Wyatt W

unread,
Oct 1, 2025, 10:06:29 AMOct 1
to Hammerspoon
Hi all,

I'm trying to use the "+" key with the hs.hotkey.bind method, and it's causing an error. Seems like "+" isn't listed in the keycodes map...?

I get an error when I run something like the following:
    hs.hotkey.bind({"cmd", "ctrl"}, "+", ...)

However, I'm able to do it with "-":
    hs.hotkey.bind({"cmd", "ctrl"}, "-", ...)   *this works fine

I tried finding the "+" key in the keycodes.lua file, but to no avail. 

Anybody know of a solution?

Thanks!
Wyatt

James Hsiao

unread,
Oct 1, 2025, 6:22:32 PMOct 1
to Hammerspoon
If you're talking about the "+" at the top of the keyboard, that would be the equivalent of 'shift'+'=' and the numpad is 'pad+'

Wyatt W

unread,
Oct 2, 2025, 2:37:42 PMOct 2
to Hammerspoon
Thank you both so much.
This totally clears up my confusion. I was so focused on it being the "+" as I'm using it for increasing the size of something, that I completely blanked on it being the same key as "=".

Wyatt
Reply all
Reply to author
Forward
0 new messages