File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -331,25 +331,23 @@ export default {
331331
332332 mounted () {
333333 const isMobile = detectMobile ()
334+ let isComposed = true
334335
335336 this .getTextareaRef ().addEventListener (' keyup' , e => {
336- if (
337- e .key === ' Enter' &&
338- e .isComposing &&
339- ! e .shiftKey &&
340- ! this .fileDialog
341- ) {
337+ if (e .key === ' Enter' && ! e .shiftKey && ! this .fileDialog ) {
342338 if (isMobile) {
343339 this .message = this .message + ' \n '
344340 setTimeout (() => this .onChangeInput ())
345341 } else if (
342+ isComposed &&
346343 ! this .filteredEmojis .length &&
347344 ! this .filteredUsersTag .length &&
348345 ! this .filteredTemplatesText .length
349346 ) {
350347 this .sendMessage ()
351348 }
352349 }
350+ isComposed = ! e .isComposing
353351
354352 setTimeout (() => {
355353 this .updateFooterLists ()
You can’t perform that action at this time.
0 commit comments