Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-09-15 20:10:45 -07:00 • committed by GitHub
parent 931afc63aa
commit d6e6f1e9b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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") {