mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
feat: enter selects first model in list
This commit is contained in:
parent
1e7a364c68
commit
133f223df6
1 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue