Commit 602a6e5
committed
fix: refocus search input on repeated Cmd+F
When the search bar was already open, Cmd+F was a no-op because setting
the isOpen atom to true again had no effect. Now detect the already-open
case and directly focus + select-all the input so the user can
immediately type a new query.1 parent 0c7392e commit 602a6e5
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
699 | 707 | | |
700 | 708 | | |
701 | 709 | | |
| |||
0 commit comments