mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 06:18:20 +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"
|
||||
placeholder={searchPlaceholder}
|
||||
autocomplete="off"
|
||||
on:keydown={(e) => {
|
||||
if (e.code === 'Enter' && filteredItems.length > 0) {
|
||||
value = filteredItems[0].value;
|
||||
show = false;
|
||||
}
|
||||
}}
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user