Fix enter key sending message while still composing

This commit is contained in:
brecert
2021-09-17 17:20:22 -04:00
parent 2ff9c91287
commit 5b16977b0e

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