web: recherche ⌘K — focus immédiat du champ (autoFocus), plus de frappe perdue à l'ouverture
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 changed file +1 −1
modified
hfmarketdata/web/src/components/SearchDialog.jsx
+1 −1
@@ -58,7 +58,7 @@ export default function SearchDialog({ open, onClose }) { | ||
| 58 | 58 | <div className="search-dialog" role="dialog" aria-modal="true" aria-label="Search documentation" data-testid="search-dialog"> |
| 59 | 59 | <div className="search-input-row"> |
| 60 | 60 | <SearchIcon /> |
| 61 | − <input ref={inputRef} value={q} onChange={e => setQ(e.target.value)} onKeyDown={onKey} placeholder="Search endpoints, guides, error codes…" aria-label="Search" role="combobox" aria-expanded="true" aria-controls="search-results" aria-activedescendant={results[sel] ? `sr-${sel}` : undefined} autoComplete="off" spellCheck={false} /> | |
| 61 | + <input ref={inputRef} autoFocus value={q} onChange={e => setQ(e.target.value)} onKeyDown={onKey} placeholder="Search endpoints, guides, error codes…" aria-label="Search" role="combobox" aria-expanded="true" aria-controls="search-results" aria-activedescendant={results[sel] ? `sr-${sel}` : undefined} autoComplete="off" spellCheck={false} /> | |
| 62 | 62 | <kbd>esc</kbd> |
| 63 | 63 | </div> |
| 64 | 64 | <div className="search-results" id="search-results" role="listbox" ref={listRef}> |
| 65 | 65 | |