fix text cursor behavior on top and bottom tasks

Hunter
Sunday, August 4th, 2024 at 11:51 AM

index.html+2-2
readme.md+1-1

index.html
628  				const currentContainer = currentElement.closest('.task-container');
629  				const currentIndex = Array.from(appContainer.querySelectorAll('.task-container')).indexOf(currentContainer);
630  
    -				placeCursorAtBeginning(currentElement);
    -
631  				if (direction === 'up') {
632  					if (currentIndex > 0) {
633  						const prevTask = currentIndex === 1 ? currentTask : tasks[currentIndex - 2];
634  						selectAndFocusTask(prevTask);
635 +						console.log('placing cursor at beginning');
636 +						placeCursorAtBeginning(currentElement);
637  					}
638  				} else {
639  					if (currentIndex < tasks.length) {
readme.md
33  - `Shift + Arrow Up/Down` reposition the selected task within its current level
34  
35  ### text editing
   -- `Left/Right` move text cursor within current task
36 +- `Left/Right` move text cursor within selected task
37  - `Command/Ctrl + C` copy the selected task's text (or highlighted substring)
38  - `Command/Ctrl + V` paste text content from the clipboard
39  - `Command/Ctrl + Z` undo text edit