mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 10:20:59 -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 (
|
if (
|
||||||
!e.shiftKey &&
|
!e.shiftKey &&
|
||||||
|
!e.isComposing &&
|
||||||
e.key === "Enter" &&
|
e.key === "Enter" &&
|
||||||
!isTouchscreenDevice
|
!isTouchscreenDevice
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue