Palette: keep focus in the search input so Enter only searches

Clicking the + follow toggle used to move focus onto that button, so the
next Enter re-triggered the follow instead of searching the highlighted
tag. The toggle now prevents the mouse-down focus steal, and the footer
hint spells out that Enter searches while + follows.
This commit is contained in:
2026-09-17 19:38:49 -05:00
parent f74cf323b5
commit 90e61bb333
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ function CommandPaletteDialog({ onClose }: { onClose: () => void }) {
<div className="flex items-center gap-3 border-t border-ctp-surface1 px-4 py-2 text-[10px] text-ctp-overlay0">
<span className="flex items-center gap-1.5">
<Images className="h-3 w-3 shrink-0" /> Enter searches the
highlighted tag · + follows it
highlighted tag — the + button only follows/unfollows
</span>
<span className="ml-auto font-mono">↑↓ · Esc</span>
</div>