Left/right arrow keys in open merged menu move element focus instead of switching providers on macOS 27 (worked on macOS 26)

Open
#5,074 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
49/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, swift

Research direction

Start by reading the fix for #1156 in #1157 and tracing how the merged menu handles arrow keys while open. Reproduce on macOS 27.2.1 with Merge Icons enabled, then check how AppKit delivers those keys to the switcher. Done when left and right select the previous and next provider without moving focus to menu elements.

Written by the indexing model from the issue text.

Description

clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🦪 silver shellfish P2

Environment

  • CodexBar version: 0.84.0
  • macOS version: 27.2.1 (Golden Gate) — fresh install, updated from macOS 26.x on 2026-11-12
  • Hardware: Apple Silicon MacBook Pro
  • Menu mode: Merge Icons ON (merged provider switcher)
  • Providers enabled: Codex, Claude, Copilot, others

Summary

After updating macOS from 26.x to 27.2.1, left/right arrow keys in the open merged menu no longer switch providers in the switcher. Instead, the system moves keyboard focus between the menu's hosted elements (the provider card / menu items get the focus highlight). This worked before the macOS update with the same CodexBar version.

Steps to Reproduce

  1. Enable Merge Icons with multiple providers on macOS 27.2.1
  2. Open the CodexBar menu from the menu bar
  3. Press the right arrow key (then the left arrow key)

Actual Behavior

  • Arrow keys move focus between menu elements: the provider usage card gets the element focus highlight (visible blue element border around the whole card)
  • The provider switcher does not change selection

Expected Behavior

  • Right arrow moves to the next provider in the switcher
  • Left arrow moves to the previous provider in the switcher
    (As it worked on macOS 26 with CodexBar 0.84.0)

Notes

  • Full Keyboard Access ("Acceso total con teclado") is OFF in System Settings → Accessibility → Keyboard, and Slow/Sticky Keys are off — so it is not an accessibility setting the user enabled.
  • This looks like macOS 27 changed the open-NSMenu key-delivery path for menus hosting custom views: arrow key events no longer reach performKeyEquivalent before AppKit's element focus navigation consumes them. Possibly related to the new status item expanded-interface APIs on macOS 27 (NSStatusItemExpandedInterfaceDelegate).
  • Related history: #1156 was fixed by #1157 for the open-menu shortcut path on macOS 26; macOS 27 appears to have changed the delivery again.
  • ⌘1–⌘9 switcher shortcuts still work while the menu is open, so the ordinal path is unaffected.

Evidence

Screen recording (44 s) showing: open merged menu, arrow presses highlighting the Codex card as a focused element instead of advancing the switcher, then checking keyboard settings:
Grabación de pantalla 2026-11-12 a la(s) 2.10.14 pm.mov — will attach the .mov file to this issue.

Dominant language
Swift
Stars
23.3k
Forks
2.2k
Avg merge
1d 18h
Merged PRs (30d)
231

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from steipete/CodexBar

All issues in steipete/CodexBar

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.