Kaynağa Gözat

chore: update

DDMeaqua 11 ay önce
ebeveyn
işleme
aba4baf384
1 değiştirilmiş dosya ile 3 ekleme ve 5 silme
  1. 3 5
      app/components/chat.tsx

+ 3 - 5
app/components/chat.tsx

@@ -876,9 +876,7 @@ export function ShortcutKeyModal(props: { onClose: () => void }) {
     },
     {
       title: Locale.Chat.ShortcutKey.clearContext,
-      keys: isMac
-        ? ["⌘", "Shift", "Backspace"]
-        : ["Ctrl", "Shift", "Backspace"],
+      keys: isMac ? ["⌘", "Shift", "k"] : ["Ctrl", "Shift", "k"],
     },
   ];
   return (
@@ -1566,11 +1564,11 @@ function _Chat() {
         event.preventDefault();
         setShowShortcutKeyModal(true);
       }
-      // 清除上下文 command + shift + Backspace
+      // 清除上下文 command + shift + k
       else if (
         (event.metaKey || event.ctrlKey) &&
         event.shiftKey &&
-        event.key.toLowerCase() === "backspace"
+        event.key.toLowerCase() === "k"
       ) {
         event.preventDefault();
         chatStore.updateCurrentSession((session) => {