Skip to content

Commit

Permalink
Select find input on Mod-F in search box
Browse files Browse the repository at this point in the history
  • Loading branch information
kognise committed Apr 11, 2023
1 parent 18db04c commit 6078ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/search-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function SearchBox({ query, cursor, runCommand }: SearchBoxProps)
'Escape': () => runCommand(closeSearchPanel),
'$mod+F': (event) => {
event.preventDefault()
findInput.current!.focus()
// findInput.current!.focus()
findInput.current!.select()
}
}),
tinykeys(findInput.current!, {
Expand Down

0 comments on commit 6078ea7

Please sign in to comment.