client: re-focus input on chat form submit

This commit is contained in:
William Boman 2016-07-10 12:36:08 +02:00
parent 7e39ae045f
commit aabdf562a6

View File

@ -681,6 +681,7 @@ $(function() {
$("#form").on("submit", function(e) { $("#form").on("submit", function(e) {
e.preventDefault(); e.preventDefault();
focus();
var text = input.val(); var text = input.val();
if (text.length === 0) { if (text.length === 0) {