From 1c230028b018e5662f330d14a3cc2f2b8a941104 Mon Sep 17 00:00:00 2001 From: brenoepics Date: Thu, 17 Mar 2022 22:30:46 +0000 Subject: [PATCH] Fix send messages on android --- src/components/room/widgets/chat-input/ChatInputView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/room/widgets/chat-input/ChatInputView.tsx b/src/components/room/widgets/chat-input/ChatInputView.tsx index e97c5550..f21fdc51 100644 --- a/src/components/room/widgets/chat-input/ChatInputView.tsx +++ b/src/components/room/widgets/chat-input/ChatInputView.tsx @@ -155,8 +155,9 @@ export const ChatInputView: FC<{}> = props => const value = (event.target as HTMLInputElement).value; - switch(event.code) + switch(event.key) { + case ' ': case 'Space': checkSpecialKeywordForInput(); return;