Skip to content
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

Option key only shortcuts do not work on macOS 15.0 beta #176

Open
seungwoochoe opened this issue Jun 20, 2024 · 10 comments
Open

Option key only shortcuts do not work on macOS 15.0 beta #176

seungwoochoe opened this issue Jun 20, 2024 · 10 comments

Comments

@seungwoochoe
Copy link
Sponsor Contributor

seungwoochoe commented Jun 20, 2024

I'm using this package in LaunchPalette, and option key only (plus shift) shortcuts do not work on macOS 15.0 beta.

Shortcuts that include modifiers other than the option key still work.

@alin23
Copy link

alin23 commented Aug 7, 2024

Yep, got the same problem in rcmd. RegisterEventHotKey seems to now return -9868 error for Option-only hotkeys, which, from what I can see in the assembly, it means something like hotKeyAlreadyExistsErr.

At first I thought this might be related to the Input Source since it has special keys on Option-character but switching to Unicode Hex Input which does not have special characters still doesn't fix the issue.

Passing kEventHotKeyExclusive to the options: parameter doesn't change anything (tried it in case this might be a recent macOS bug on how this parameter is treated).

@sindresorhus
Copy link
Owner

I recommend submitting a report to Apple (with Feedback Assistant).

@alin23
Copy link

alin23 commented Aug 9, 2024

FB14730958 reported. I have no idea what you can do with that issue ID but I'll let you know if I get any response.

Feedback Assistant-006498-Friday-19-07

@alin23
Copy link

alin23 commented Aug 30, 2024

No response so far and the Apple event is coming up on September 9th. I guess this is shipping as is.

Another nail in the coffin for publishing apps on the Mac App Store and staying inside the sandbox...

@TheSteggPNW
Copy link

I'm having this same issue, but was able to work around by using CTRL as the modifier key instead of Option. That at least allows me to invoke Maccy's clipboard.

However, after changing the default shortcut, Sequoia kept giving me a permissions warning that Maccy needed access to Accessibility Settings every time I used the new shortcut combo. I couldn't actually paste anything from Maccy's clipboard.

Maccy was already configured to have the right permissions in the Accessibility permissions pane in Settings, and adding/removing Maccy from the list had no effect. Rebooting seems to have fixed it. Sucks that I have a couple of years of muscle memory to overcome, but at least the app seems functional now.

@megabitsenmzq
Copy link
Contributor

megabitsenmzq commented Sep 18, 2024

@alin23 Did you get any response from Apple recently? This "feature" has already been released. 😭

The only thing I can do in my app is tell the user to change the shortcut to Control+xxx now.

@alin23
Copy link

alin23 commented Sep 18, 2024

@alin23 Did you get any response from Apple recently? This "feature" has already been released. 😭

Nope, no response whatsoever. I'm trying to find a workaround for this in rcmd as we speak because I'm drowning in support emails at the moment.

I also don't have any good solution other than disallowing Option and Option+Shift.

@sindresorhus
Copy link
Owner

sindresorhus commented Sep 18, 2024

I have submitted a report to Apple: feedback-assistant/reports#552

I recommend everyone here do the same. Feel free to simply duplicate my report. The more reports, the more likely Apple will do something about it.

@alin23
Copy link

alin23 commented Sep 19, 2024

Looks like we have our answer: https://developer.apple.com/forums//thread/763878?src=push&answerId=804374022#804374022

Frameworks Engineer
Apple

This was an intentional change in macOS Sequoia to limit the ability of key-logging malware to observe keys in other applications. The issue of concern was that shift+option can be used to generate alternate characters in passwords, such as Ø (shift-option-O).

There is no workaround; macOS Sequoia now requires that a hotkey registration use at least one modifier that is not shift or option.

@megabitsenmzq
Copy link
Contributor

That's so sad.
Maybe we need to implement something in this library to prompt the user to change the shortcut if it’s blocked by macOS 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants