Closed
Labels
Description
Problem
The menus that App menus and the Apple menu open in StableBar's popup list items, separators, checkmarks and submenus, but no keyboard shortcuts. The macOS menu bar shows each item's shortcut on the right, so people who replace it with StableBar lose the place where they look shortcuts up. The guide names the gap ("These menus show items, separators, checkmarks and submenus, but not keyboard shortcuts", docs/widgets.md), and #291 listed it as a known gap.
Proposal
- Read each item's shortcut through Accessibility, which gives it for AppKit, Chromium, Electron and JetBrains apps alike:
AXMenuItemCmdChar,AXMenuItemCmdVirtualKey,AXMenuItemCmdGlyphandAXMenuItemCmdModifiers. - Show it on the right of the row, dimmed, as macOS does: ⌃⌥⇧⌘ then the key, with symbols for keys without a character (↩ ⌫ ⌦ ⎋ ⇥, arrows, Page Up/Down, Home/End), F-keys by name, and 🌐 for fn shortcuts such as Window → Fill (🌐⌃F). Keys line up in one column, and a long title is cut short before its shortcut. The popup keeps its 260 pt width.
- Read an item's attributes in one
AXUIElementCopyMultipleAttributeValuescall, so the four extra attributes don't slow menus down. - Menus opened from the Menu bar items widget share the reader, so they get shortcuts too.
What Accessibility returns (macOS 27.2, read from Finder, Terminal, Chrome, Slack, Spotify, Ghostty and PhpStorm):
AXMenuItemCmdModifiers: 0 is ⌘ alone, then 1 adds ⇧, 2 adds ⌥, 4 adds ⌃, 8 removes ⌘, and 16, which the headers don't name, adds fn. Finder's Window → Fill is 28 (🌐⌃F), View → Enter Full Screen is 24 (🌐F).- Keys without a character come with a virtual key code and usually a glyph, and their
AXMenuItemCmdCharis a control or private-use character (U+0008 for ⌫, U+F700 for ↑) that can't be shown as is. Finder's Window → Move & Resize items give only the virtual key code. - Dictation's shortcut is glyph 150 with 🎤 as its character.
- Timing for Chrome's File menu, 16 items: today's four reads per item take 16–18 ms; adding the four shortcut attributes as separate reads takes 37 ms; all eight in one call take 13 ms.
Possible today
No. AppMenu.entries(of:) reads the title, enabled state, checkmark and submenu, and AppMenuRow draws only those.
Related
- Open app menus in StableBar's popup instead of a native menu #286 / feat: open app menus in StableBar's popup instead of a native menu #291 moved app menus into StableBar's popup; feat: open app menus in StableBar's popup instead of a native menu #291 listed shortcuts as a known gap.
- Show icons beside standard commands in app menus on macOS 26 #322 declined icons in these menus because Accessibility gives no image or action. Shortcuts are part of what it gives, so that reason doesn't apply here.
- Use the bar with VoiceOver and the keyboard #212 is about using the bar with the keyboard, a separate problem.
Triaged by Claude Code (Claude Opus 5.5).
Activity
fix: show the right-to-left Return glyph as ↪ in app menus
fix: reject negative modifiers in a scene's sample menu
chore(release): 0.11.0 [skip ci]
stablebar-releases commentedon Nov 6, 2026
🎉 This issue has been resolved in version 0.11.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀