From c8109aedf6fd59f1a53bb969cc8fb4498cbadc93 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:36:31 +0530 Subject: [PATCH] fix: prevent active file sending on click --- gui/src/components/mainInput/InputToolbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 87cf5344f..500ec9ee8 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -222,8 +222,8 @@ function InputToolbar(props: InputToolbarProps) { props.onEnter({ useCodebase: false, noContext: useActiveFile - ? !(isMetaEquivalentKeyPressed(e as any) || e.altKey) - : isMetaEquivalentKeyPressed(e as any) || e.altKey, + ? isMetaEquivalentKeyPressed(e as any) || e.altKey + : !isMetaEquivalentKeyPressed(e as any) || e.altKey, }); } }}