铸渊: 移除documenchatInput错误引用
This commit is contained in:
parent
71dbfef99c
commit
172feada56
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user