From b7ef574ae050a7f5d00b8b1138769ece50df36ac Mon Sep 17 00:00:00 2001 From: Curtis SerVaas Date: Wed, 29 Oct 2014 20:54:29 -0400 Subject: [PATCH] MinorBugFix- hitBackDeletes LastNode --- public/js/libs/myLogic/keydownHandler.js | 1 + 1 file changed, 1 insertion(+) 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);