allow user to hit "enter" for username submission

This commit is contained in:
sm
2015-08-25 21:26:01 -07:00
parent e6edcc3630
commit 3d02db71f3
+5 -1
View File
@@ -15,8 +15,12 @@ $(function(){
$("#alert").hide();
$("#stream").hide();
$("#uinputs").hide();
$("#submit-username").click(authenticate);
$('#username').keydown(function (e){
if(e.keyCode == 13 || e.keyCode == 32){
authenticate();
}
})
$("#submit-uinput").click(send);
setupWS();
});