fix: remove reject edit diff functionality on cmd backspace (#6703)

This commit is contained in:
Aditya Mitra 2025-07-18 21:16:30 +05:30 • committed by GitHub
parent c7abc56b0c
commit 46b644850b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ import {
ChatBubbleOvalLeftIcon,
} from "@heroicons/react/24/outline";
import { Editor, JSONContent } from "@tiptap/react";
import { InputModifiers, ChatHistoryItem } from "core";
import { ChatHistoryItem, InputModifiers } from "core";
import { renderChatMessage } from "core/util/messageContent";
import {
useCallback,
@ -138,7 +138,6 @@ export function Chat() {
!e.shiftKey
) {
void dispatch(cancelStream());
if (isInEdit) ideMessenger.post("rejectDiff", {});
}
};
window.addEventListener("keydown", listener);