correct cursor behavior on top/bottom tasks

Hunter
Friday, August 9th, 2024 at 5:05 PM

index.html+2-1

index.html
727  					if (currentIndex > 0) {
728  						const prevTask = currentIndex === 1 ? currentTask : tasks[currentIndex - 2];
729  						selectAndFocusTask(prevTask);
730 +						placeCursorAtBeginning(currentElement);
731  					}
732  				} else {
733  					if (currentIndex < tasks.length) {
734  						selectAndFocusTask(tasks[currentIndex]);
735 +						placeCursorAtBeginning(currentElement);
736  					}
737  				}
    -				placeCursorAtBeginning(currentElement);
738  				lastSubtaskDownArrowReleased = false;
739  			}
740