modified: static/js/main.js
This commit is contained in:
@@ -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 }));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user