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:value={messageInput}
|
||||||
bind:this={inputEle}
|
bind:this={inputEle}
|
||||||
on:keydown={(e) => {
|
on:keydown={(e) => {
|
||||||
if(e.key.toLocaleLowerCase() === "enter" && (!e.shiftKey)){
|
if(e.key.toLocaleLowerCase() === "enter" && (!e.shiftKey) && !e.isComposing){
|
||||||
if($DataBase.sendWithEnter){
|
if($DataBase.sendWithEnter){
|
||||||
send()
|
send()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|||||||
Reference in New Issue
Block a user