mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #4059] [MERGED] feat: select model with arrow keys #60249
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/4059
Author: @thearyadev
Created: 7/23/2024
Status: ✅ Merged
Merged: 7/25/2024
Merged by: @tjbck
Base:
dev← Head:feat/model-selection-with-arrow-keys📝 Commits (5)
5beaa5dfeat: select model with arrow keys (+enter)eb38d38fix: pseudoSelectedIndex is reset when modal is closed.dbf88a2refactor: renamepseudoSelectedIndextoselectedModelIdxfbef731fix: checkfilteredItemslength before unsafe index access9e4326afix: unintentional import from previous commit📊 Changes
1 file changed (+18 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/ModelSelector/Selector.svelte(+18 -2)📄 Description
Changelog Entry
Description
implements enhancement outlined in #4049
in the model selection dialog, the user can press enter to select the model currently selected in the list. (#3962)
this PR adds the ability to move the selected model using the arrow keys, and to select it with the enter key.
Changed
on:keydownand related components to keep track of the currently selected model via arrow keys.Additional Information
pseusoSelectedIndexis reset.Screenshots or Videos
https://github.com/user-attachments/assets/4ccc2225-9b1e-4fdd-a724-3b3b8b8670a2
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.