mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
Chat: Use KeyboardEvent.key
instead of deprecated .which
This commit is contained in:
parent
faf84f0143
commit
cf86ae8b63
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.which === 13 || evt.which === 10) {
|
||||
if (evt.key === 'Enter') {
|
||||
evt.preventDefault();
|
||||
this.send();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue