From 0b24b7cc0531a7009b5dc1adea31a39f3f4e3d13 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 5 Apr 2024 13:29:53 +0800 Subject: [PATCH] :sparkles: Fix keybinding in chatting --- src/components/chat/ChatEditor.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/chat/ChatEditor.vue b/src/components/chat/ChatEditor.vue index 2fefc53..b2ad60b 100644 --- a/src/components/chat/ChatEditor.vue +++ b/src/components/chat/ChatEditor.vue @@ -67,8 +67,7 @@ :max-rows="6" :loading="loading" v-model="data.content" - @keyup.ctrl.enter="sendMessage" - @keyup.meta.enter="sendMessage" + @keydown="onEditorKeydown" @paste="pasteMedia" >