fix: Explicitly pass null to isEditableElement when activeElement.value is falsy.

This commit is contained in:
Johnpaul
2025-12-31 02:15:39 +01:00
parent 1d1e16b62d
commit 3cf19af173

View File

@@ -30,7 +30,7 @@ watch(space, (isPressed) => {
// Skip if canvas has focus (litegraph handles it) or if in editable element
if (activeElement.value === canvas.canvas) return
if (isEditableElement(activeElement.value!)) return
if (isEditableElement(activeElement.value || null)) return
// Mirror litegraph's processKey behavior for spacebar
if (isPressed) {