From 18ffc1888b90233a879a703be90fb2f4ec06288e Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Apr 2025 18:49:47 -0700 Subject: [PATCH] fix cmd stopping stream --- gui/src/pages/gui/Chat.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 162cc0752..4350ff56d 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -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()); }