mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 00:50:44 +00:00
The searchTerminal hotkey called setIsSearchOpen(true), which is a no-op when the bar is already open — React bails on the unchanged boolean, the SearchBar's focus effect (dep [isOpen]) never re-runs, and focus stays wherever the user moved it. Route the hotkey through a new requestSearchFocus that bumps a focusToken when already open; the SearchBar watches that token and refocuses its input. Closes #1789 Co-Authored-By: Claude <noreply@anthropic.com>