Check isComposing for send shortcut

This commit is contained in:
hanayashiki 2021-05-01 06:44:01 -07:00
parent 1a4dc37f22
commit c0e12a69a9
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ public3
package-lock.json
session_name.session
tasks.txt
yarn.lock

View File

@ -598,7 +598,7 @@ export const handleScrollSideEvent = (elem: HTMLElement, side: 'top' | 'bottom',
} */
export function isSendShortcutPressed(e: KeyboardEvent) {
if(e.key === 'Enter' && !isMobile) {
if(e.key === 'Enter' && !isMobile && !e.isComposing) {
/* if(e.ctrlKey || e.metaKey) {
this.messageInput.innerHTML += '<br>';
placeCaretAtEnd(this.message)