mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 08:15:00 -05:00
[PR #3962] [MERGED] feat: enter selects first model in list #8165
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3962
Author: @thearyadev
Created: 7/17/2024
Status: ✅ Merged
Merged: 7/18/2024
Merged by: @tjbck
Base:
dev← Head:feat/enter-to-select-model📝 Commits (1)
133f223feat: enter selects first model in list📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
src/lib/components/chat/ModelSelector/Selector.svelte(+7 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Add ability to select model in model selection dialog using the enter key.
Feature detailed in #3960.
Added
on:keydownonsrc/lib/components/ModelSelector/Selector.svelteinputtag to check for the keydown event including theenterkey to trigger a model selection.Additional Information
enterkeydown is only triggered if the input is in focusenterselects the top resultScreenshots or Videos
https://github.com/user-attachments/assets/e53e2861-93db-4143-a84b-0bf6e872df71
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.