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()); }