1//per form disabling
2<form ... onkeydown="return event.key != 'Enter';">
3
4
5//or with jquery
6<script>
7 $(document).on("keydown", "form", function(event) {
8 return event.key != "Enter";
9});
10 </script>
1$(document).ready(function() {
2 $(window).keydown(function(event){
3 if(event.keyCode == 13) {
4 event.preventDefault();
5 return false;
6 }
7 });
8});