modified: static/js/main.js

This commit is contained in:
SimolZimol
2026-05-22 17:50:46 +02:00
parent 718e38e9d5
commit 31e1b4618c

View File

@@ -305,7 +305,7 @@ $('#chat-input').addEventListener('input', function () {
$('#chat-input').addEventListener('keydown', (e) => { $('#chat-input').addEventListener('keydown', (e) => {
if (e.key === 'Enter' && !e.shiftKey) { if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault(); e.preventDefault();
$('#chat-form').dispatchEvent(new Event('submit')); $('#chat-form').dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
} }
}); });