FIX: Parent list is not discontinued by pressing 'Enter' twice after its nested list has been discontinued.
Code for test:
1. Go to the end of the nested list and press 'Enter' twice
2. The nested list is discontinued but by pressing Enter the parent list can not be discontinued.