commit 5c950d55bc7751267119274f7a4366ed16081483
parent 2be1af9398d2829739ebea6ec6dcfacbe37ef894
Author: Hunter
Date: Fri, 9 Aug 2024 17:05:45 -0400
correct cursor behavior on top/bottom tasks
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
@@ -727,13 +727,14 @@
if (currentIndex > 0) {
const prevTask = currentIndex === 1 ? currentTask : tasks[currentIndex - 2];
selectAndFocusTask(prevTask);
+ placeCursorAtBeginning(currentElement);
}
} else {
if (currentIndex < tasks.length) {
selectAndFocusTask(tasks[currentIndex]);
+ placeCursorAtBeginning(currentElement);
}
}
- placeCursorAtBeginning(currentElement);
lastSubtaskDownArrowReleased = false;
}