Skip to content

Show readable media-key labels in HotkeyCapture - #572

Merged
jmeistrich merged 2 commits into
mainfrom
jmeistrich/hotkey-media-labels
Nov 23, 2026
Merged

jmeistrich merged 2 commits into
mainfrom
jmeistrich/hotkey-media-labels

Conversation

@jmeistrich

@jmeistrich jmeistrich commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • HotkeyCapture (via formatHotkey) no longer shows raw media-key names like MediaPlayPause, MediaNext, and MediaPrevious.
  • On macOS those keys use the same typographic-glyph style as modifiers and arrows: ⏯, ⏭, and ⏮. Canonical binding strings are unchanged so stored shortcuts and matching still use the existing names.
  • On Windows, which already spells modifiers as words, the labels are Play/Pause, Next Track, and Previous Track.
  • These are the only media/special keys capture can produce that previously rendered as raw identifiers. Named keys such as Home, PageUp, and Tab already had readable labels.
  • Also includes a one-line test fix so the split-view layout native probe compiles the detachReactSubview helper added in 571e36b. That helper was already in the full-source sidebar probe; the layout probe only compiled selected methods, which is why main at 353b8f9 is currently red.

Test plan

  • bun run test -- tests/commands-hotkeys.test.ts tests/command-capture.test.ts tests/accelerator.test.ts (10 passed)
  • bun run test -- tests/split-view-layout-native.test.ts tests/sidebar-split-view-native.test.ts (the previously failing layout probe now passes)
  • Confirm a Music or Kitchen Sink shortcuts row bound to a media key shows ⏯ / ⏭ / ⏮ instead of the raw names

Canonical bindings stay MediaPlayPause, MediaNext and MediaPrevious.
macOS display uses the same typographic-glyph style as modifiers (⏯ ⏭ ⏮);
Windows uses Play/Pause, Next Track and Previous Track.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T06:56:23.546453Z
We couldn’t complete this review. Comment @codex review to try again.
abac514 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

The 571e36b helper lives as a file-scope static function. The layout native
test only compiles selected methods, so CI failed with an undeclared identifier.
The full-source sidebar probe already had the helper and passed.
@jmeistrich
jmeistrich merged commit 51ed054 into main Nov 23, 2026
2 checks passed
@jmeistrich
jmeistrich deleted the jmeistrich/hotkey-media-labels branch November 23, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant