diff --git a/public/js/libs/myLogic/keydownHandler.js b/public/js/libs/myLogic/keydownHandler.js index c87a1bf..138b2ca 100644 --- a/public/js/libs/myLogic/keydownHandler.js +++ b/public/js/libs/myLogic/keydownHandler.js @@ -93,6 +93,7 @@ keydownHandler = function(event){ //the entire body is wrapped in this. } //hitEnter if(vo.hitBack && vo.empty){ + if(vo.rootLevel && vo.parentModel.get("children").length == 1){return;} if(vo.thisModel.get('children').length != 0){INPUT_PROCESSED=true; return;} event.preventDefault(); removeNode(vo);