Skip to content

Commit 1fb78dd

Browse files
committed
fix(web): limit launcher activation to its own focus
1 parent bbee228 commit 1fb78dd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/web/src/components/RightPanelTabs.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,8 @@ function RightPanelEmptyState(props: {
437437
return;
438438
}
439439
if (event.key === "Enter") {
440-
// A focused row button owns its own activation; only open from the
441-
// highlight when the container itself has focus.
442-
if (event.target instanceof HTMLElement && event.target.closest("button")) return;
440+
// Only activate the highlight when the launcher itself has focus.
441+
if (event.target !== event.currentTarget) return;
443442
const action = availableActions[highlightIndex];
444443
if (!action) return;
445444
event.preventDefault();

0 commit comments

Comments
 (0)