fix : send message double time when writing korean
block send message when event is composing
This commit is contained in:
@@ -237,7 +237,7 @@
|
||||
bind:value={messageInput}
|
||||
bind:this={inputEle}
|
||||
on:keydown={(e) => {
|
||||
if(e.key.toLocaleLowerCase() === "enter" && (!e.shiftKey)){
|
||||
if(e.key.toLocaleLowerCase() === "enter" && (!e.shiftKey) && !e.isComposing){
|
||||
if($DataBase.sendWithEnter){
|
||||
send()
|
||||
e.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user