allow user to hit "enter" for username submission
This commit is contained in:
parent
e6edcc3630
commit
3d02db71f3
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user