铸渊: 移除documenchatInput错误引用

This commit is contained in:
bingshuo 2026-05-18 21:32:27 +08:00
parent 71dbfef99c
commit 172feada56

View File

@ -481,13 +481,7 @@
// Periodically update slot info // Periodically update slot info
setInterval(updateSlotInfo, 30000); 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) { chatInput.addEventListener('keydown', function(e) {
if (e.key === 'Escape' && document.activeElement === chatInput) { if (e.key === 'Escape' && document.activeElement === chatInput) {
chatInput.blur(); chatInput.blur();