add a keystroke check for chat and make it so the chat listens on event 13 aswell as event 10

This commit is contained in:
John McLear 2012-10-28 17:38:56 +00:00
parent 7903eb93b6
commit b4680e42d7
2 changed files with 40 additions and 1 deletions

View file

@ -150,7 +150,7 @@ var chat = (function()
$("#chatinput").keypress(function(evt)
{
//if the user typed enter, fire the send
if(evt.which == 13)
if(evt.which == 13 || evt.which == 10)
{
evt.preventDefault();
self.send();