From a689406b28f9b8c51cb875ecdb10a598fa983e89 Mon Sep 17 00:00:00 2001 From: CornerSkyless <573196853@qq.com> Date: Tue, 7 Mar 2023 17:54:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A4=E6=96=AD=E5=B0=8F=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=20ctrl+enter=20=E5=8F=91=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AF=20(#363)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index b34d39e..f5e1c36 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -305,6 +305,12 @@ function handleEnter(event: KeyboardEvent) { handleSubmit() } } + else { + if (event.key === 'Enter' && event.ctrlKey) { + event.preventDefault() + handleSubmit() + } + } } function handleStop() {