mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Chat: Allow Shift-Enter to insert a newline
This commit is contained in:
parent
cf86ae8b63
commit
4ceb3ca4c8
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ exports.chat = (() => {
|
|||
|
||||
$('#chatinput').keypress((evt) => {
|
||||
// if the user typed enter, fire the send
|
||||
if (evt.key === 'Enter') {
|
||||
if (evt.key === 'Enter' && !evt.shiftKey) {
|
||||
evt.preventDefault();
|
||||
this.send();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue