From 9d98319ae07ceb2c8320cafa104f828bd07af910 Mon Sep 17 00:00:00 2001 From: Haidong Xin Date: Mon, 12 Jan 2026 09:09:47 +0000 Subject: [PATCH 1/4] fix: ime input bugs --- ui/frontend/main.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ui/frontend/main.js b/ui/frontend/main.js index 309df8d..4a2f66c 100644 --- a/ui/frontend/main.js +++ b/ui/frontend/main.js @@ -3295,9 +3295,23 @@ function bindEvents() { if (els.chatSend) els.chatSend.onclick = handleChatSubmit; // Support Shift+Enter for newline, Enter for submit + // [修复] 添加 IME 输入法组合状态检测,防止中文输入时误触发发送 if (els.chatInput) { + let isComposing = false; // 跟踪是否正在进行 IME 组合输入 + + // 监听 IME 组合开始事件(拼音输入开始) + els.chatInput.addEventListener('compositionstart', function() { + isComposing = true; + }); + + // 监听 IME 组合结束事件(拼音输入结束,已选择汉字或确认拼音) + els.chatInput.addEventListener('compositionend', function() { + isComposing = false; + }); + els.chatInput.addEventListener('keydown', function(e) { - if (e.key === 'Enter' && !e.shiftKey) { + // 如果正在进行 IME 组合输入,不触发发送 + if (e.key === 'Enter' && !e.shiftKey && !isComposing) { e.preventDefault(); handleChatSubmit(e); } From b0d309ed07f51c30e49a2e41446c4b574616e6ec Mon Sep 17 00:00:00 2001 From: Haidong Xin Date: Mon, 12 Jan 2026 09:12:30 +0000 Subject: [PATCH 2/4] feat: add ultrarag logo --- ui/frontend/index.html | 4 +- ui/frontend/style.css | 19 + ui/frontend/ultrarag.svg | 775 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 797 insertions(+), 1 deletion(-) create mode 100644 ui/frontend/ultrarag.svg diff --git a/ui/frontend/index.html b/ui/frontend/index.html index e81c5f5..b21d9bd 100644 --- a/ui/frontend/index.html +++ b/ui/frontend/index.html @@ -128,7 +128,9 @@

Parameter Configuration