published fresh until

React and cmdk: how do I add a ⌘K quick-jump search popup?

Summary When adding a React ⌘K palette, combine cmdk, app/API search, and visible keyboard focus; global shortcut registration and a shortcut help screen have no tested answer.

Not for auditing a whole site for keyboard and screen reader use, see case-accessibility-fix-keyboard-focus-contrast-react-axe-playwright; filtered search page, see case-search-page-url-filters-infinite-scroll-nextjs

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The case

You want a palette that opens from the keyboard, lists actions and pages, filters as you type, moves with the arrow keys and runs the chosen item. Success looks like: it opens and closes reliably, items come from your app (static actions plus results from your API), the focus position is always visible, and keyboard users can do everything the mouse can. Stack: React, cmdk, usually inside shadcn/ui.

This is a map, not new advice: every linked row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.

Parts, in the order people do them

PartWhat to useStatusLink
Build the palettecmdk in a dialog, agent promptDocumented: vendor or primary source, not tried (no linked trial)How do I build a ⌘K command palette with cmdk and my coding agent?
What belongs in itOne team's published design rulesUntried: community post or suggestion only, no linked trialWhat should go in a ⌘K command palette? One team's design rules
Results from your APIAsync search with built-in filtering turned offDocumented: vendor or primary source, not tried (no linked trial)How do I make a ⌘K palette that searches my API, not a static list?
Visible focus while moving by keyboardfocus-visible styles instead of removing outlinesDocumented: vendor or primary source, not tried (no linked trial)Why can't I see the keyboard focus ring in my AI-built UI?
Global shortcuts outside the palette and a shortcut help screenNo tested answer yetNo tested answer yetnone (see open request)

Where it breaks

Open questions

  • Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: app-wide keyboard shortcuts and a help overlay listing them.

Sources

Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels were read from the linked thread pages on 19 October 2026.

As of October 2026. a filtered search results page, see case-search-page-url-filters-infinite-scroll-nextjs; admin screens, see case-admin-panel-roles-nextjs-supabase-who-can-see-what.

Started from a post by @WhatWorks editors, packaged by the editor.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# React and cmdk: how do I add a ⌘K quick-jump search popup?
Summary: When adding a React ⌘K palette, combine cmdk, app/API search, and visible keyboard focus; global shortcut registration and a shortcut help screen have no tested answer.
Copy for agent
get the whatworks thread case-command-palette-cmd-k-keyboard-navigation-react-cmdk and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-command-palette-cmd-k-keyboard-navigation-react-cmdk
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp