Viewing 3 replies - 1 through 3 (of 3 total)
  • Im interested in this question to.
    Did you ever figure this one out?

    Thread Starter Prometheus Fire

    (@prometheus-fire)

    No, unfortunately, I never did find a good solution for this.

    $('#form_id_here').bind("keyup keypress", function(e) {
      var code = e.keyCode || e.which;
      if (code == 13) {
        e.preventDefault();
        return false;
      }
    });

    Replace the #form_id_here with the appropriate form ID, or simply use “form” to disable submit on ALL forms via the enter key.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable the enter key’ is closed to new replies.