Modified Alt+Shift+S to also save node properties

This commit is contained in:
Magnus Åhall 2024-01-09 18:03:12 +01:00
parent 8768ab1692
commit d3bc5e3f7f

View File

@ -12,6 +12,7 @@ export class NodeUI extends Component {
this.menu = signal(false)
this.node = signal(null)
this.nodeContent = createRef()
this.nodeProperties = createRef()
this.keys = signal([])
this.page = signal('node')
@ -80,7 +81,7 @@ export class NodeUI extends Component {
break
case 'node-properties':
page = html`<${NodeProperties} nodeui=${this} />`
page = html`<${NodeProperties} ref=${this.nodeProperties} nodeui=${this} />`
break
case 'keys':
@ -160,7 +161,10 @@ export class NodeUI extends Component {
break
case 'S':
if (this.page.value == 'node')
this.saveNode()
else if (this.page.value == 'node-properties')
this.nodeProperties.current.save()
break
case 'U':