summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-10-28 17:38:56 +0000
committerJohn McLear <john@mclear.co.uk>2012-10-28 17:38:56 +0000
commitb4680e42d75dd3507a2b39b315971039cb0935fd (patch)
tree3e4586106376559d28c02e8b040ea08ade89cc72 /src
parent7903eb93b6e378a6396212725c52f5d004d0af87 (diff)
downloadetherpad-lite-b4680e42d75dd3507a2b39b315971039cb0935fd.zip
add a keystroke check for chat and make it so the chat listens on event 13 aswell as event 10
Diffstat (limited to 'src')
-rw-r--r--src/static/js/chat.js2
1 files changed, 1 insertions, 1 deletions
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();