[Bug] Manually created macOS keyboard shortcuts not honored

I want to use the custom shortcut Opt+Cmnd+1 to convert a line to the Heading 1 format. The Format menu has Heading 1, which when selected with the mouse, works. A custom macOS shortcut for the same does not.

The steps below are specific to macOS Ventura, but equivalent steps with macOS Monterey also do not work.

Steps to reproduce

Configure the shortcut

  • Open the Keyboard Shortcuts preference pane – Apple menu > System Settings… > Keyboard > Keyboard Shortcuts…
  • Choose App Shortcuts
  • Add a shortcut – Click + > Application: Obsidian / Menu Title: Heading 1 / Keyboard Shortcut: Opt+Cmnd+1 > Done

Use the shortcut

  • In any Obsidian document, select Opt+Cmnd+1 to convert that line to the Heading 1 format.

Expected result

The select line format is changed to Heading 1.

Actual result

The Format menu text blinks, indicating that the OS correctly invoked the Heading 1 menu item, but the format does not change.

Environment

  • Operating system: macOS Ventura (also tested in macOS Monterey)
  • Debug info:

SYSTEM INFO:
Obsidian version: v1.1.9
Installer version: v1.0.3
Operating system: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 22.3.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

1 Like

we don’t support macOS shortcuts. You need to use Obsidian’s own shortcuts and if there’s a shortcut that does what you want natively, perhaps a plugin implements it.

But you support formatting from the menu bar. The current behavior indicates that the code is not interpreting the selection of a menu bar item in a fully OS compatible way.

This isn’t about supporting macOS shortcuts, rather it is about something not interpreting the OS menu item request properly as the application should respond to the menu item correctly whether it was selected with a mouse, or whether the OS triggered the menu item. In other words, it is a bug.

1 Like

Yes, this isn’t implement yet. Please, open a feature request.