From b4680e42d75dd3507a2b39b315971039cb0935fd Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 28 Oct 2012 17:38:56 +0000 Subject: add a keystroke check for chat and make it so the chat listens on event 13 aswell as event 10 --- src/static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/static/js/chat.js b/src/static/js/chat.js index 486c7256..4493ed15 100644 --- a/src/static/js/chat.js +++ b/src/static/js/chat.js @@ -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(); -- cgit v1.2.3