open-webui/src/lib/components/layout
Yogi 6f5f263244
fix: ignore IME composition Enter in chat search (#26172) (#26238)
Pressing Enter to confirm an IME composition (e.g. Japanese, Chinese, or Korean)
in the chat search modal and the sidebar search input was treated as a normal
Enter and triggered a search action such as starting a new chat, instead of just
confirming the composed text.

Guard the search keydown handlers so a keydown fired while composing is ignored:
- SearchInput.svelte on:keydown
- SearchModal.svelte document-level onKeyDown
using e.isComposing (with a keyCode === 229 fallback), mirroring the IME guard
already used by MessageInput. A second Enter, after the composition is confirmed,
still triggers the action as before.

Fixes #26172

Co-authored-by: Yogi <251807336+ybnjm1234-source@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 23:47:02 -05:00
..
Navbar fix(ui): gate all chat export formats by chat.export permission (#25914) 2026-06-17 00:41:18 +02:00
Overlay refac 2026-04-02 22:54:17 -05:00
Sidebar fix: ignore IME composition Enter in chat search (#26172) (#26238) 2026-06-28 23:47:02 -05:00
ArchivedChatsModal.svelte feat(ui): show total archived chat count in ChatsModal title (#25872) 2026-06-17 02:57:27 +02:00
ChatsModal.svelte feat(ui): show total archived chat count in ChatsModal title (#25872) 2026-06-17 02:57:27 +02:00
FilesModal.svelte feat(ui): show total file count in FilesModal title (#25873) 2026-06-17 02:55:13 +02:00
SearchModal.svelte fix: ignore IME composition Enter in chat search (#26172) (#26238) 2026-06-28 23:47:02 -05:00
SharedChatsModal.svelte feat(ui): add 'Unshare All Shared Chats' button to Shared Chats modal (#25848) 2026-06-17 03:06:41 +02:00
Sidebar.svelte refac 2026-06-25 03:26:31 +01:00
UpdateInfoToast.svelte update toast contrast 2025-05-14 09:51:07 +02:00