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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user