mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-11 15:16:28 +02:00
Chat: Allow Shift-Enter to insert a newline
This commit is contained in:
parent
cf86ae8b63
commit
4ceb3ca4c8
@ -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…
x
Reference in New Issue
Block a user