From 172feada56b060864f7086d51cad26c6c065adf8 Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Mon, 18 May 2026 21:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B8=E6=B8=8A:=20=E7=A7=BB=E9=99=A4documen?= =?UTF-8?q?chatInput=E9=94=99=E8=AF=AF=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/ftchat/chat.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/ftchat/chat.js b/frontend/ftchat/chat.js index 80ed626..8f529ea 100644 --- a/frontend/ftchat/chat.js +++ b/frontend/ftchat/chat.js @@ -481,13 +481,7 @@ // Periodically update slot info setInterval(updateSlotInfo, 30000); - // Keyboard shortcut: Escape to blur input - documenchatInput.addEventListener('keydown', function(e) { - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault(); - sendMessage(); - } - }); + chatInput.addEventListener('keydown', function(e) { if (e.key === 'Escape' && document.activeElement === chatInput) { chatInput.blur();