mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
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:
parent
7903eb93b6
commit
b4680e42d7
2 changed files with 40 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue