mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Fix enter key sending message while still composing
This commit is contained in:
@@ -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
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user