From f1ee4eb89f3731909c96e58dc018e61a76ea134b Mon Sep 17 00:00:00 2001 From: IGCrystal Date: Wed, 18 Jun 2025 21:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=BD=95=E9=9F=B3=E9=94=AE=E4=BD=8D=E4=B8=BACtrl+B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ctrl+A太常用了就修改了 --- dashboard/src/views/ChatPage.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/dashboard/src/views/ChatPage.vue b/dashboard/src/views/ChatPage.vue index d2b963645..2e1b738a6 100644 --- a/dashboard/src/views/ChatPage.vue +++ b/dashboard/src/views/ChatPage.vue @@ -161,7 +161,7 @@
{{ t('core.common.longPress') }} - Ctrl + A + Ctrl + B {{ tm('shortcuts.voiceRecord') }} 🎤
@@ -265,7 +265,8 @@
- + + {{ tm('actions.editTitle') }} @@ -401,7 +402,9 @@ export default { sidebarHovered: false, sidebarHoverTimer: null, sidebarHoverExpanded: false, - sidebarHoverDelay: 100, // 悬停延迟,单位毫秒 pendingCid: null, // Store pending conversation ID for route handling // 连接状态提示相关 + sidebarHoverDelay: 100, // 悬停延迟,单位毫秒 + pendingCid: null, // Store pending conversation ID for route handling + // 连接状态提示相关 connectionConflictDialog: false, connectionStatusSnackbar: false, connectionStatusMessage: '', @@ -1153,8 +1156,8 @@ export default { }); }, handleInputKeyDown(e) { - if (e.ctrlKey && e.keyCode === 65) { // Ctrl+A组合键 - e.preventDefault(); // 防止默认的全选行为 + if (e.ctrlKey && e.keyCode === 66) { // Ctrl+B组合键 + e.preventDefault(); // 防止默认行为 // 防止重复触发 if (this.ctrlKeyDown) return; @@ -1168,8 +1171,9 @@ export default { } }, this.ctrlKeyLongPressThreshold); } - }, handleInputKeyUp(e) { - if (e.keyCode === 65) { // A键释放 + }, + handleInputKeyUp(e) { + if (e.keyCode === 66) { // B键释放 this.ctrlKeyDown = false; // 清除定时器