Skip to content

Commit

Permalink
#1243 Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
j3nsch committed Oct 21, 2024
1 parent dd41209 commit c153dd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/layouts/opus4/js/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ $(function () {
});
});

// Prevent submission of form when Enter/Return is pressed in a simple text input
$('form').on('keydown', e => {
if (e.key === 'Enter') {
if ($(e.target).is("input[type='text']")) {
Expand Down

0 comments on commit c153dd7

Please sign in to comment.