فهرست منبع

chore: 更换快捷键

DDMeaqua 11 ماه پیش
والد
کامیت
5b5dea1c59
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/components/chat.tsx

+ 2 - 2
app/components/chat.tsx

@@ -876,7 +876,7 @@ export function ShortcutKeyModal(props: { onClose: () => void }) {
     },
     {
       title: Locale.Chat.ShortcutKey.clearContext,
-      keys: isMac ? ["⌘", "Shift", "Delete"] : ["Ctrl", "Shift", "Delete"],
+      keys: isMac ? ["⌘", "Shift", "k"] : ["Ctrl", "Shift", "k"],
     },
   ];
   return (
@@ -1568,7 +1568,7 @@ function _Chat() {
       else if (
         (event.metaKey || event.ctrlKey) &&
         event.shiftKey &&
-        event.key.toLowerCase() === "delete"
+        event.key.toLowerCase() === "k"
       ) {
         event.preventDefault();
         chatStore.updateCurrentSession((session) => {