mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 14:29:55 +00:00
feat: enter selects first model in list
This commit is contained in:
parent
1e7a364c68
commit
133f223df6
@ -238,6 +238,13 @@
|
|||||||
class="w-full text-sm bg-transparent outline-none"
|
class="w-full text-sm bg-transparent outline-none"
|
||||||
placeholder={searchPlaceholder}
|
placeholder={searchPlaceholder}
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
on:keydown={(e) => {
|
||||||
|
if (e.code === 'Enter' && filteredItems.length > 0) {
|
||||||
|
value = filteredItems[0].value;
|
||||||
|
show = false;
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user