mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
enter to send does not insert new line after sending
This commit is contained in:
parent
88582d3383
commit
281d0e00ce
1 changed files with 4 additions and 1 deletions
|
@ -441,7 +441,10 @@ export default class Chat extends React.Component {
|
|||
this.chatMessageSeen(selectedUser)
|
||||
}
|
||||
if (e.key === 'Enter') {
|
||||
if (!e.shiftKey) this.sendMsg(currMsg)
|
||||
if (!e.shiftKey) {
|
||||
this.sendMsg(currMsg)
|
||||
e.preventDefault()
|
||||
}
|
||||
}
|
||||
this.resizeInputBar()
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue