mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 16:40:58 -05:00
Fix enter key sending message while still composing
This commit is contained in:
parent
2ff9c91287
commit
5b16977b0e
1 changed files with 21 additions and 20 deletions
|
@ -523,6 +523,7 @@ export default observer(({ channel }: Props) => {
|
|||
|
||||
if (
|
||||
!e.shiftKey &&
|
||||
!e.isComposing &&
|
||||
e.key === "Enter" &&
|
||||
!isTouchscreenDevice
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue