Skip to content

Commit

Permalink
Fixes #1050. This allows for enter to move the carriage return rather…
Browse files Browse the repository at this point in the history
… than activating the form for textareas within the search form
  • Loading branch information
paulgodley committed Mar 10, 2016
1 parent 97ae176 commit 96338df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/SearchForm/tpls/header.tpl
Expand Up @@ -52,8 +52,7 @@
function submitOnEnter(e)
{
var characterCode = (e && e.which) ? e.which : event.keyCode;
if (characterCode == 13) {
if (characterCode == 13 && event.target.type !== "textarea") {
document.getElementById('search_form').submit();
return false;
} else {
Expand Down

0 comments on commit 96338df

Please sign in to comment.