diff --git a/public/layouts/opus4/js/submit.js b/public/layouts/opus4/js/submit.js index a95bc5d00..e164f933b 100644 --- a/public/layouts/opus4/js/submit.js +++ b/public/layouts/opus4/js/submit.js @@ -37,11 +37,11 @@ $(function () { }); $('form').on('keydown', e => { - if (e.key === 'Enter') { - if ($(e.target).is("input[type='text']")) { - e.preventDefault(); - } - } + if (e.key === 'Enter') { + if ($(e.target).is("input[type='text']")) { + e.preventDefault(); + } + } }); }); \ No newline at end of file