mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: open the highlighted chat when Enter is pressed in the search dialog (#31004)
This commit is contained in:
parent
69f64c9844
commit
a5bc78300e
1 changed files with 2 additions and 2 deletions
|
|
@ -482,7 +482,7 @@
|
|||
} else if (e.code === 'Enter') {
|
||||
const item = document.querySelector(`[data-arrow-selected="true"]`);
|
||||
if (item) {
|
||||
item?.click();
|
||||
(item.querySelector('a') ?? item).click();
|
||||
show = false;
|
||||
}
|
||||
|
||||
|
|
@ -585,7 +585,7 @@
|
|||
if (e.code === 'Enter' && (chatList ?? []).length > 0) {
|
||||
const item = document.querySelector(`[data-arrow-selected="true"]`);
|
||||
if (item) {
|
||||
item?.click();
|
||||
(item.querySelector('a') ?? item).click();
|
||||
}
|
||||
|
||||
show = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue