chore: update

This commit is contained in:
DDMeaqua 2024-12-31 14:25:43 +08:00
parent 6d84f9d3ae
commit aba4baf384

View File

@ -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) => {