fix(messages): remove duplicate Enter handler — keep only Quill keyboard binding
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

This commit is contained in:
Maciej Pienczyn 2026-03-28 16:11:57 +01:00
parent 5adc6db031
commit bc92605769

View File

@ -1219,16 +1219,7 @@
},
});
// Enter = send, Shift+Enter = newline (override via DOM keydown)
state.quill.root.addEventListener('keydown', function (e) {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
Composer.send();
return false;
}
});
// Enter handled by Quill keyboard binding above (no duplicate DOM listener)
// Typing indicator
state.quill.on('text-change', function () {