From d6e6f1e9b0e7079e6fcab2e6beafda40c79e94d7 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 15 Sep 2025 20:10:45 -0700 Subject: [PATCH] Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- gui/src/components/mainInput/TipTapEditor/utils/keyHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/TipTapEditor/utils/keyHandlers.ts b/gui/src/components/mainInput/TipTapEditor/utils/keyHandlers.ts index cec988450..c652857df 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/keyHandlers.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/keyHandlers.ts @@ -32,7 +32,7 @@ export function useEditorEventHandlers(options: { return; } - if (!editorFocusedRef?.current || isMetaEquivalentKeyPressed(e)) return; + if (!editorFocusedRef?.current || !isMetaEquivalentKeyPressed(e)) return; // Only set activeKey for Meta/Control/Alt to drive toolbar highlighting if (e.key === "Meta" || e.key === "Control" || e.key === "Alt") {