mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
MinorBugFix- hitBackDeletes LastNode
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user