soffes/HotKey

Only option and letter hotkey not work on MacOS15.1 beta

Liaoworking opened this issue · 4 comments

In the latest version of the macOS 15.1 Beta, your demo was tested to be effective by me. However, when I created a new project, the shortcut keys became ineffective. Then, when I used it in the macOS 14, the shortcut keys were still effective.

I finally discovered that the difference, where an error code would be returned and the eventHotKey is nil.

image

If I set App sandbox as YES the hotkey will not works.

Same issue

Does not work on macOS 15.0 GM either. Not sure about the cause, it may be that the (deprecated) Carbon API no longer works fully?

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.

Link