Skip to content

Commit d184eb6

Browse files
committedDec 31, 2024
chore: cmd + shift+ backspace
1 parent c5d9b11 commit d184eb6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎app/components/chat.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,9 @@ export function ShortcutKeyModal(props: { onClose: () => void }) {
902902
},
903903
{
904904
title: Locale.Chat.ShortcutKey.clearContext,
905-
keys: isMac ? ["⌘", "Shift", "k"] : ["Ctrl", "Shift", "k"],
905+
keys: isMac
906+
? ["⌘", "Shift", "backspace"]
907+
: ["Ctrl", "Shift", "backspace"],
906908
},
907909
];
908910
return (
@@ -1607,11 +1609,11 @@ function _Chat() {
16071609
event.preventDefault();
16081610
setShowShortcutKeyModal(true);
16091611
}
1610-
// 清除上下文 command + shift + k
1612+
// 清除上下文 command + shift + backspace
16111613
else if (
16121614
(event.metaKey || event.ctrlKey) &&
16131615
event.shiftKey &&
1614-
event.key.toLowerCase() === "k"
1616+
event.key.toLowerCase() === "backspace"
16151617
) {
16161618
event.preventDefault();
16171619
chatStore.updateTargetSession(session, (session) => {

0 commit comments

Comments
 (0)
Please sign in to comment.