mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 04:00:16 +09:00
chore: update
This commit is contained in:
parent
6d84f9d3ae
commit
aba4baf384
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user