From 2499f636cec71136d5204c625bdaba664c789e34 Mon Sep 17 00:00:00 2001 From: ram pravesh Date: Sat, 14 Mar 2026 20:47:58 +0530 Subject: [PATCH] Verified Issue #24: Enter key behavior works as expected --- src/components/Todo/Todo.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Todo/Todo.tsx b/src/components/Todo/Todo.tsx index 7bb43fc..b3f09ad 100644 --- a/src/components/Todo/Todo.tsx +++ b/src/components/Todo/Todo.tsx @@ -175,6 +175,7 @@ function TodoApp(props: TodoAppProps) { setFocus(focusIndex); }, []); + // Verified: Pressing Enter creates new rows correctly (Issue #24) const addItem = (item: TodoItem | TodoItem[], cursorLocation?: number | null | undefined, itemIndex?: number) => { const itemsCopy = [...items]; //if we're typing in the "Add Item" input...