mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
fix: a half-typed mention in a hidden channel no longer takes Enter from other tabs (#34361)
This commit is contained in:
1 file changed
+2
-1
@@ -151,9 +151,10 @@
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
const input = document.activeElement;
|
||||
const keydownListener = (e: KeyboardEvent) => {
|
||||
// required to prevent the default enter behavior
|
||||
if (e.key === 'Enter') {
|
||||
if (e.key === 'Enter' && e.target === input) {
|
||||
e.preventDefault();
|
||||
select(selectedIndex);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user