Add hooks to Node Lifecycle (#1882)

*  add hook when closing node editing view

*  add hook for node deletion

*  add hook call to escape key
This commit is contained in:
Ben Hesseldieck
2021-06-18 22:47:03 +02:00
committed by GitHub
parent 0470740737
commit c0c994d245
3 changed files with 5 additions and 3 deletions

View File

@@ -453,6 +453,7 @@ export default mixins(
this.callDebounced('deleteSelectedNodes', 500);
} else if (e.key === 'Escape') {
this.$externalHooks().run('dataDisplay.nodeEditingFinished');
this.createNodeActive = false;
this.$store.commit('setActiveNode', null);
} else if (e.key === 'Tab') {