diff --git a/app/views/posts/partials/common/_search.html.erb b/app/views/posts/partials/common/_search.html.erb index 49a7fe12b..b09607eb3 100644 --- a/app/views/posts/partials/common/_search.html.erb +++ b/app/views/posts/partials/common/_search.html.erb @@ -37,6 +37,11 @@ $(e.target).attr('rows', rows + 1); $(e.target).css("width", "100%"); }); + + $("#tags").keydown("return", function(e) { + $("#search-box form").submit(); + e.preventDefault(); + }); }); <% end %> \ No newline at end of file