Fix enter key sending message while still composing

This commit is contained in:
brecert
2021-09-17 17:20:22 -04:00
parent 487b964d9c
commit 6f445f1054

View File

@@ -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
) { ) {