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

How to get the keycode of the pressed key #204

Closed
JeanDevonne opened this issue Dec 20, 2022 · 3 comments
Closed

How to get the keycode of the pressed key #204

JeanDevonne opened this issue Dec 20, 2022 · 3 comments
Labels
question Further information is requested

Comments

@JeanDevonne
Copy link

I try to capture the event of the enter key to call a function that adds the value of the input and continue adding more elements without the need to press the + icon.

Is there a way to handle keypress events?

image

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Mar 27, 2023
@github-actions
Copy link
Contributor

This issue was closed because it has been stalled for 14 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
@wojtekmaj wojtekmaj added question Further information is requested and removed stale labels Apr 18, 2023
@wojtekmaj
Copy link
Owner

wojtekmaj commented Apr 18, 2023

You can totally pass any event prop you like to React-Time-Picker, including onKeyPress

However, looking at the description, you probably should be just listening for onChange, and once you get a value, you render yet another time picker :)

@wojtekmaj wojtekmaj reopened this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants