anomalyco / anomalyco/opencode
app: Settings → Shortcuts search field loses focus after one keystroke
A pull request for this has already been merged.
- #49779 by @ysm-dev — merged
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On the Settings → Shortcuts page, the "Search shortcuts" field loses focus as soon as you type the first character. The letter you typed lands in the field, but the field itself blurs (focus moves to <body>), so any further typing does nothing until you click back into the field.
OpenCode version
2.0.8
Steps to reproduce
- Open Settings → Shortcuts
- Click the "Search shortcuts" field
- Type a single letter
The field's focus ring disappears right after that first keystroke, and typing more letters has no effect until you click the field again.
Screenshot and/or share link
https://github.com/user-attachments/assets/672ab1ec-235f-4d18-b81f-46d121de2191
Notice the focus ring around the field disappears right after the "s" is typed, and further keystrokes don't land in the field.
Operating System
macOS
Terminal
N/A (web/desktop app, not the TUI)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on the Settings → Shortcuts page using the "Search shortcuts" field, then inspect the field's focus behavior and related state updates. Done means the field stays focused after the first keystroke and accepts further typing so the shortcut list can be searched normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100