Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Enter Key" Functionality to Trigger Task Submission #18

Closed
mudasirmurtaza opened this issue Oct 11, 2024 · 5 comments
Closed

Add "Enter Key" Functionality to Trigger Task Submission #18

mudasirmurtaza opened this issue Oct 11, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request hacktoberfest

Comments

@mudasirmurtaza
Copy link

mudasirmurtaza commented Oct 11, 2024

Currently, tasks in the Todo-List application are only submitted when the "Add" button is clicked. To improve user experience, I propose adding functionality to submit tasks when the "Enter" key is pressed while focusing on the task name, date, or time input fields. This enhancement will allow users to quickly add tasks without needing to use the mouse or tap the button manually.

Proposed Changes:
Add event listeners to the task name, date, and time input fields.
Ensure that pressing the "Enter" key triggers the existing addTodo() function.

This improvement aligns with the goals of Hacktoberfest, and I'd like to contribute to this as part of the program. @Anshgrover23, please assign this issue to me and add the Hacktoberfest labels so I can work on it.

Thank you!

@mudasirmurtaza
Copy link
Author

@Anshgrover23, I can add this same setting for the update button too the user doesn't need to click update while editing, they can just hit the enter button on the keyboard.

@Anshgrover23
Copy link
Collaborator

@mudasirmurtaza
thanks for making this issue, assigned to you.

@mudasirmurtaza
Copy link
Author

Thank you, I'll soon start working on this issue. and will create a PR.

@mudasirmurtaza
Copy link
Author

mudasirmurtaza commented Oct 11, 2024

@Anshgrover23, I have created the PR, please check it and let me know if anything needs to be done.
Also, if I am not wrong, you will be adding labels there as well, the labels won't get attached automatically, right ? Also are there two labels one hacktoberfest and one as hacktoberfest accepted or just one is also enough ?

link to my PR

@Anshgrover23
Copy link
Collaborator

@mudasirmurtazaYes, i am adding labels to it manually.

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