-
Notifications
You must be signed in to change notification settings - Fork 591
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
Global Hotkeys on Sequoia: hs.hotkey.bind({'alt'}, 'a' ... still working? #3699
Comments
I have a similar issue that I noticed this morning. I had |
oh - I don't want to change it to alt+ additional modifier. I miss then a lot of shortcuts with only alt - modifier :( |
As I read in this reddit this change is only for sandboxed apps in the MAS? https://www.reddit.com/r/macapps/comments/1fjpiiw/psa_macos_15_breaks_optionkey_hotkeys/ |
Reading a bit further down, this seems to be related to a specific API for registering global hotkeys, Unfortunately, Hammerspoon uses this API. Question now is: Does it make sense to change Hammerspoon to use a different API that might need accessibility permissions? On the one hand, as a user, I would love to be able to continue using my Option-Shift shortcuts (which are generally not used by apps, so very useful for global shortcuts). On the other hand, it's unclear if Apple will restrict further APIs in the future, so this might be a temporary improvement and not worth the effort. |
Same as @muescha I would prefer to be able to use the Option modifier key the way it used to work before. But you are absolutely right, there is no guarantee Apple won't restrict alternative APIs as well. I suppose it depends on how time-consuming would switching to a different API be. |
to clarify: Option-Shift-{key} are not effected. only Option-{key} |
it would be nice if some user having Sequoia installed run this script and can tell if it is working under Sequoia: hs.hotkey.bind({'alt'}, 'z', function () hs.alert.show("key pressed", 1) end) |
What makes you think Option-Shift is not affected? The sources you mentioned in the original issue both say it is and the forum post by an Apple employee mentions it explicitly. You’re right, though, it would be nice if someone could test this on Sequoia. |
You are right. Sorry. yes Opt+Key and Opt+Shift+Key are blocked. |
I use macOS' native Text System Defaults and Key Bindings to insert strings into text fields. For me, it works in any application with text input, even in the Signal Electron app. Will be fine for umlauts but won't help if you want to execute a command. Just create a text file
For instance, Shift-Opt-Q inserts the "equivalent" unicode character. Some useful links:
|
I'm on Sequoia, my opt/alt hotkeys work everywhere but password fields |
I came here after thinking I was going crazy — sometimes my Alt+key bindings will work (on macOS 15.1), other times not. Indeed, all my other bindings seem unaffected. This is a huge blow for me as I've been relying on Alt+key bindings for many years, primarily to switch between apps (like on Windows you can use Win+number). Is there any hope to fix that? Is there any hack I can do on my side? Any response is appreciated! |
Same for me, sometimes my alt+key bindings work, sometimes not. alt+shift+key bindings do not work either. They only produce some unicode characters like they would normally do. |
I've since upgraded to Sequoia and I'm using Karabiner Elements now to map my Caps Lock key to I'm quite sure it's possible to use a similar workaround to keep using |
I was losing my mind over this since I have two machines (M2 and M4) running Sequoia and running the same exact Hammerspoon config, the M2 is working fine, the M4 is not… I still don't understand how, if it's a Sequoia issue. But what I don't understand why this is broken hs.hotkey.bind({}, '§', function()
hs.eventtap.keyStroke({ 'CMD', 'SHIFT' }, 'a')
end) |
I've set up some Umlauts using
{alt} + a
for "ä" and{alt, shift} + a
for "Ä" (see the configuration here: Umlauts.lua).I recently read an article about global hotkeys using the Alt key no longer being available in Sequoia (article in German: ifun.de, or English: Shottr).
Does this limitation also apply to Hammerspoon? Are there any workarounds using Karabiner?
I'm hesitant to update to Sequoia because of this issue...
The text was updated successfully, but these errors were encountered: