(listOpen = true)}
oninput={() => {
listOpen = true;
activeIndex = 0;
}}
onkeydown={onKeydown}
placeholder={t('search.placeholder')}
aria-label={t('search.aria')}
role="combobox"
aria-expanded={listOpen}
aria-controls="tool-search-list"
/>
{#if listOpen && query.trim().length > 0 && matches.length === 0}
{t('search.nothingFound')}
{:else if listOpen && matches.length > 0}
{#each matches as match, index (match.id)}
choose(match.id)}
onHover={() => (activeIndex = index)}
/>
{/each}
{/if}