commit dd0a0f0dec09baa84c3822d5cf463635f44f7c02
parent 7fcd618f75ffdc63b181ecf23017471fae7650b7
Author: Hunter
Date:   Sun,  4 Aug 2024 11:51:33 -0400

fix text cursor behavior on top and bottom tasks

Diffstat:
Mindex.html | 4++--
Mreadme.md | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/index.html b/index.html @@ -628,12 +628,12 @@ const currentContainer = currentElement.closest('.task-container'); const currentIndex = Array.from(appContainer.querySelectorAll('.task-container')).indexOf(currentContainer); - placeCursorAtBeginning(currentElement); - if (direction === 'up') { if (currentIndex > 0) { const prevTask = currentIndex === 1 ? currentTask : tasks[currentIndex - 2]; selectAndFocusTask(prevTask); + console.log('placing cursor at beginning'); + placeCursorAtBeginning(currentElement); } } else { if (currentIndex < tasks.length) { diff --git a/readme.md b/readme.md @@ -33,7 +33,7 @@ a nested task manager that breaks complex tasks into manageable subtasks. - `Shift + Arrow Up/Down` reposition the selected task within its current level ### text editing -- `Left/Right` move text cursor within current task +- `Left/Right` move text cursor within selected task - `Command/Ctrl + C` copy the selected task's text (or highlighted substring) - `Command/Ctrl + V` paste text content from the clipboard - `Command/Ctrl + Z` undo text edit