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