diff options
author | John McLear <john@mclear.co.uk> | 2012-10-28 17:38:56 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-10-28 17:38:56 +0000 |
commit | b4680e42d75dd3507a2b39b315971039cb0935fd (patch) | |
tree | 3e4586106376559d28c02e8b040ea08ade89cc72 /src | |
parent | 7903eb93b6e378a6396212725c52f5d004d0af87 (diff) | |
download | etherpad-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.js | 2 |
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(); |