diff --git a/main.js b/main.js index 95176f0..8adbe44 100644 --- a/main.js +++ b/main.js @@ -15,7 +15,8 @@ if (document.querySelector('.modal__form-submit')) { } document.querySelector('.form__input-message').addEventListener('keydown', function (e) { - if (e.ctrlKey && e.keyCode === 13) { + if (!e.ctrlKey && e.keyCode === 13) { + e.preventDefault(); document.querySelector('.form__input-submit').click() } });