Modified Alt+Shift+S to also save node properties
This commit is contained in:
parent
8768ab1692
commit
d3bc5e3f7f
@ -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':
|
||||
this.saveNode()
|
||||
if (this.page.value == 'node')
|
||||
this.saveNode()
|
||||
else if (this.page.value == 'node-properties')
|
||||
this.nodeProperties.current.save()
|
||||
break
|
||||
|
||||
case 'U':
|
||||
|
Loading…
Reference in New Issue
Block a user