Skip to content

feat: Add Enter key support for task creation (#166) - #173

Open
srisstii wants to merge 1 commit into
JIYAJAIN30:mainfrom
srisstii:feature/enter-key-support
Open

feat: Add Enter key support for task creation (#166)#173
srisstii wants to merge 1 commit into
JIYAJAIN30:mainfrom
srisstii:feature/enter-key-support

Conversation

@srisstii

Copy link
Copy Markdown

This PR improves the task input experience by allowing users to add a task using the Enter key, in addition to the existing Add button.

Changes Made

  • Added keyboard support for the task input field.
  • Reused the existing addTask() function to avoid duplicate logic.
  • Prevented the default Enter key behavior.
  • Preserved existing validation for empty or whitespace-only tasks.

Testing

  • ✅ Pressing Enter adds a valid task.
  • ✅ Clicking the Add button still works.
  • ✅ Empty input does not create a task.
  • ✅ Existing task completion, deletion, and progress tracking continue to work.

Fixes #166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No keyboard support for adding a task (Enter key) — mouse-only interaction

1 participant