mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
added keycode check to chat enter press
This commit is contained in:
parent
8acc3a07e8
commit
126812647a
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ export default class Chat extends React.Component {
|
|||
) {
|
||||
this.chatMessageSeen(selectedUser)
|
||||
}
|
||||
if (e.key === 'Enter') {
|
||||
if (e.key === 'Enter' || e.keyCode === 13) {
|
||||
if (!e.shiftKey) this.sendMsg(currMsg)
|
||||
}
|
||||
this.resizeInputBar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue