Skip to content

Commit

Permalink
changed deprecated keyCode field
Browse files Browse the repository at this point in the history
  • Loading branch information
SDClowen committed Sep 17, 2024
1 parent e23e944 commit 561424d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $(function () {

editor.on('init', function () {
$(editor.getDoc()).on('keydown', function (e) {
if (e.keyCode === 13) {
if (e.key === "Enter") {
e.preventDefault();
}
});
Expand Down

0 comments on commit 561424d

Please sign in to comment.