forked from abner/for-legacy-web
Fix enter key sending message while still composing
This commit is contained in:
@@ -523,6 +523,7 @@ export default observer(({ channel }: Props) => {
|
||||
|
||||
if (
|
||||
!e.shiftKey &&
|
||||
!e.isComposing &&
|
||||
e.key === "Enter" &&
|
||||
!isTouchscreenDevice
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user