Fix: Spaces cannot be entered in the code editor of the code operator. (#14183)

### What problem does this PR solve?

Fix: Spaces cannot be entered in the code editor of the code operator.

[Monaco Editor with XYFlow fails to accept most space bar keypresses,
who is at fault?
#5204](https://github.com/microsoft/monaco-editor/discussions/5204)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-04-17 21:41:39 +08:00
committed by GitHub
parent fa644c5a15
commit 09622c6353

View File

@@ -331,6 +331,7 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) {
}}
deleteKeyCode={['Delete', 'Backspace']}
onBeforeDelete={handleBeforeDelete}
panActivationKeyCode={null}
>
<AgentBackground></AgentBackground>
<Spotlight className="z-0" opcity={0.7} coverage={70} />