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:
parent
931afc63aa
commit
d6e6f1e9b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue