ensure canvas gets focus after ghost placement

This commit is contained in:
pythongosssss
2026-03-17 07:40:28 -07:00
parent bbd1e60f7b
commit 307a1c77c0

View File

@@ -2191,6 +2191,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
if (this.state.ghostNodeId != null) {
if (e.button === 0) this.finalizeGhostPlacement(false)
if (e.button === 2) this.finalizeGhostPlacement(true)
this.canvas.focus()
e.stopPropagation()
e.preventDefault()
return