Skip to content

Commit 46b8b98

Browse files
committed
fix #278 Handle the send message event on Enter key press
1 parent 3314099 commit 46b8b98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lib/Room/RoomFooter/RoomFooter.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,13 @@ export default {
333333
const isMobile = detectMobile()
334334
335335
this.getTextareaRef().addEventListener('keyup', e => {
336-
if (e.key === 'Enter' && !e.shiftKey && !this.fileDialog) {
336+
if (
337+
e.key === 'Enter' &&
338+
e.isComposing &&
339+
!e.shiftKey &&
340+
!this.fileDialog
341+
) {
342+
console.log('keyup', e.isComposing)
337343
if (isMobile) {
338344
this.message = this.message + '\n'
339345
setTimeout(() => this.onChangeInput())

0 commit comments

Comments
 (0)