Added todoEscape to allow undo of edit on escape