Skip to content

Commit

Permalink
Merge pull request #2633 from QuizandSurveyMaster/CU-86cwbwgmz-paragr…
Browse files Browse the repository at this point in the history
…aph-allow-enter-key

Cu 86cwbwgmz paragraph allow enter key
  • Loading branch information
zubairraeen authored Aug 30, 2024
2 parents f518d7a + 09ade61 commit 11fb7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ jQuery(document).keydown(function(event) {
return;
}
}
if ([39, 37, 13, 9].includes(event.keyCode)) {
if ([39, 37, 13, 9].includes(event.keyCode) && jQuery('textarea:focus').length === 0) {
event.preventDefault();
}
if (event.keyCode === 39) {
Expand Down

0 comments on commit 11fb7b7

Please sign in to comment.