Browse Source

Merge pull request #121 from AtomicGameEngine/JME-FIX-DELETENODE

Remove initial node delete support in favor of the improved version
JoshEngebretson 10 years ago
parent
commit
d246955e0e
1 changed files with 0 additions and 37 deletions
  1. 0 37
      Script/AtomicEditor/ui/inspector/NodeInspector.ts

+ 0 - 37
Script/AtomicEditor/ui/inspector/NodeInspector.ts

@@ -11,43 +11,6 @@ class NodeInspector extends ScriptWidget {
         super();
         super();
 
 
         this.subscribeToEvent(this, "WidgetEvent", (data) => this.handleWidgetEvent(data));
         this.subscribeToEvent(this, "WidgetEvent", (data) => this.handleWidgetEvent(data));
-        this.subscribeToEvent("KeyUp", (data) => { this.handleKeyUp(data) });
-
-    }
-
-    handleKeyUp(data) {
-
-        if (data.key == 27) {
-
-            if (this.nodeLayout) {
-                this.sendEvent("EditorActiveNodeChange", { node: null });
-                this.nodeLayout.deleteAllChildren();
-                this.nodeLayout = null;
-            }
-        }
-
-        if (data.key == 92) {
-
-            // '\' is  delete for now
-
-            if (this.node) {
-
-                var node = this.node;
-                this.node = null;
-
-                this.nodeLayout.deleteAllChildren();
-                this.nodeLayout = null;
-
-                if (node.parent) {
-                    node.parent.removeChild(node);
-                }
-
-                node.removeComponents(true, true);
-
-
-            }
-
-        }
 
 
     }
     }