Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
133f223d
Commit
133f223d
authored
Jul 17, 2024
by
Aryan Kothari
Browse files
feat: enter selects first model in list
parent
1e7a364c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/lib/components/chat/ModelSelector/Selector.svelte
src/lib/components/chat/ModelSelector/Selector.svelte
+7
-0
No files found.
src/lib/components/chat/ModelSelector/Selector.svelte
View file @
133f223d
...
@@ -238,6 +238,13 @@
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment