Skip to content

fix(cmdk): Do not fire selections on Tab key press#113381

Open
JonasBa wants to merge 1 commit intomasterfrom
jb/ref/DE-1064
Open

fix(cmdk): Do not fire selections on Tab key press#113381
JonasBa wants to merge 1 commit intomasterfrom
jb/ref/DE-1064

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented Apr 18, 2026

Tab key events in the command palette input were calling onActionSelection,
causing the focused item to be activated whenever the user pressed Tab (e.g.
to move focus away from the palette). Only Enter should trigger item selection.

Also removes the now-unnecessary comment about Shift+Tab and cleans up the
shiftKey guard that was compensating for the Tab case.

Refs DE-1064

Tab key events in the command palette input were triggering item
selection, the same as Enter. Tab should only move focus — not
activate items.

Refs DE-1064
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 18, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 18, 2026
@JonasBa JonasBa requested review from mtopo27 and rbro112 April 18, 2026 12:22
@JonasBa JonasBa marked this pull request as ready for review April 18, 2026 12:22
@JonasBa JonasBa requested a review from a team as a code owner April 18, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants