Skip to content

Commit aba4baf

Browse files
committed
chore: update
1 parent 6d84f9d commit aba4baf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/components/chat.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,7 @@ export function ShortcutKeyModal(props: { onClose: () => void }) {
876876
},
877877
{
878878
title: Locale.Chat.ShortcutKey.clearContext,
879-
keys: isMac
880-
? ["⌘", "Shift", "Backspace"]
881-
: ["Ctrl", "Shift", "Backspace"],
879+
keys: isMac ? ["⌘", "Shift", "k"] : ["Ctrl", "Shift", "k"],
882880
},
883881
];
884882
return (
@@ -1566,11 +1564,11 @@ function _Chat() {
15661564
event.preventDefault();
15671565
setShowShortcutKeyModal(true);
15681566
}
1569-
// 清除上下文 command + shift + Backspace
1567+
// 清除上下文 command + shift + k
15701568
else if (
15711569
(event.metaKey || event.ctrlKey) &&
15721570
event.shiftKey &&
1573-
event.key.toLowerCase() === "backspace"
1571+
event.key.toLowerCase() === "k"
15741572
) {
15751573
event.preventDefault();
15761574
chatStore.updateCurrentSession((session) => {

0 commit comments

Comments
 (0)