Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
11.91k stars 579 forks source link

cannot remap SHIFT + § #3641

Open mmt1821 opened 3 months ago

mmt1821 commented 3 months ago

On a Mac silicon (M3) (Sonoma 14.5) Hammerspoon used to allow me to map SHIFT + § to tilde (~) -- yes I have an EU keyboard.

The following code does not seem to do anything anymore:

hs.hotkey.bind({ "shift" }, "§", function() print("TILDE") end)

Any clues?

cmsj commented 1 month ago

In general I tend to recommend people use Karabiner to do key remappings, because it's able to operate at a much lower level than Hammerspoon is. Having said that, this seems to be working ok for me:

> foo = hs.hotkey.bind({"shift"}, '§', function() print("yo") end)
2024-08-05 16:08:49: 16:08:49     hotkey: Enabled hotkey ⇧§

2024-08-05 16:08:51: yo

> hs.keycodes.currentLayout()
British

Do you see the Enabled hotkey ⇧§ message in your Hammerspoon console?

github-actions[bot] commented 2 weeks ago

This issue needs more information. Please see our request above.