SPB Git

Repository Public

Commit

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>
Simon-Pierre Boucher committed · Sep 5, 2026 parent abd97ff
1 changed file +1 −1 Browse files
modified hfmarketdata/web/src/components/SearchDialog.jsx +1 −1
@@ -58,7 +58,7 @@ export default function SearchDialog({ open, onClose }) {
58 <div className="search-dialog" role="dialog" aria-modal="true" aria-label="Search documentation" data-testid="search-dialog"> 58 <div className="search-dialog" role="dialog" aria-modal="true" aria-label="Search documentation" data-testid="search-dialog">
59 <div className="search-input-row"> 59 <div className="search-input-row">
60 <SearchIcon /> 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 <kbd>esc</kbd> 62 <kbd>esc</kbd>
63 </div> 63 </div>
64 <div className="search-results" id="search-results" role="listbox" ref={listRef}> 64 <div className="search-results" id="search-results" role="listbox" ref={listRef}>
65 65
Menu

Theme