added keycode check to chat enter press

This commit is contained in:
mrfry 2022-05-29 19:55:01 +02:00
parent 8acc3a07e8
commit 126812647a

View file

@ -443,7 +443,7 @@ export default class Chat extends React.Component {
) { ) {
this.chatMessageSeen(selectedUser) this.chatMessageSeen(selectedUser)
} }
if (e.key === 'Enter') { if (e.key === 'Enter' || e.keyCode === 13) {
if (!e.shiftKey) this.sendMsg(currMsg) if (!e.shiftKey) this.sendMsg(currMsg)
} }
this.resizeInputBar() this.resizeInputBar()