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 {
331
331
332
332
mounted () {
333
333
const isMobile = detectMobile ()
334
+ let isComposed = true
334
335
335
336
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 ) {
342
338
if (isMobile) {
343
339
this .message = this .message + ' \n '
344
340
setTimeout (() => this .onChangeInput ())
345
341
} else if (
342
+ isComposed &&
346
343
! this .filteredEmojis .length &&
347
344
! this .filteredUsersTag .length &&
348
345
! this .filteredTemplatesText .length
349
346
) {
350
347
this .sendMessage ()
351
348
}
352
349
}
350
+ isComposed = ! e .isComposing
353
351
354
352
setTimeout (() => {
355
353
this .updateFooterLists ()
You can’t perform that action at this time.
0 commit comments