diff --git a/playground/NodeEditor.js b/playground/NodeEditor.js index 76cb4f27def3e..3d80c16f51f5d 100644 --- a/playground/NodeEditor.js +++ b/playground/NodeEditor.js @@ -411,8 +411,15 @@ export class NodeEditor extends THREE.EventDispatcher { this.preview = ! this.preview; - } + } else if ( key === 'Delete' ) { + + if ( this.canvas.selected ) this.canvas.selected.dispose(); + + } else if ( key === 'Escape' ) { + this.canvas.select( null ); + + } } } );