fix cmd stopping stream

This commit is contained in:
Nate 2025-04-28 18:49:47 -07:00
parent feb9ad7365
commit 18ffc1888b

View file

@ -139,9 +139,9 @@ export function Chat() {
// Cmd + Backspace to delete current step
const listener = (e: any) => {
if (
e.key === "Backspace" && jetbrains
? e.altKey
: isMetaEquivalentKeyPressed(e) && !e.shiftKey
e.key === "Backspace" &&
(jetbrains ? e.altKey : isMetaEquivalentKeyPressed(e)) &&
!e.shiftKey
) {
dispatch(cancelStream());
}