Skip to main content

One post tagged with "macOS"

View all tags
macOS
· 3 min read

macOS Sequoia Blocks Option+Shift Keyboard Shortcuts (Error -9868)

macOS Sequoia rejects RegisterEventHotKey registrations that use only Option and Shift, returning error -9868. Here is why, and what to use instead.

Doyul Kim, Ian
Software Engineer @OrderX, Real-time Trading Systems

macOS Sequoia

macOS Sequoia has blocked a keyboard shortcut combination frequently used by developers, for security reasons. Shortcuts that use only the Option (⌥) and Shift (⇧) keys can no longer be registered through the RegisterEventHotkey API.

:::warning[TL;DR]

  • When registering a shortcut that uses only Option+Shift, an error -9868 occurs.
  • Although the goal is to prevent keylogging malware, it is actually normal apps that are being affected.
  • For now, you'll need to use a new combination that adds the Command or Control key.
  • Apple's own apps are not subject to this restriction.

:::