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

onKeyUp/Down #186

Closed
BillOTei opened this issue May 11, 2017 · 5 comments
Closed

onKeyUp/Down #186

BillOTei opened this issue May 11, 2017 · 5 comments

Comments

@BillOTei
Copy link

Feature requests

Correct me if I am wrong but it would be nice to be able to use event such as onKeyUp or Down as
it would provide a great way implement input mask regex for ex.

@ericgio
Copy link
Owner

ericgio commented May 11, 2017

If your goal is to restrict the user input, this is being tracked in #33. Do you have other use cases for onKeydown/onKeyUp hooks?

@stevenqzhang
Copy link

One use case that I need for this: pressing the enter key while focused/typing in the input box triggers a function

@ericgio
Copy link
Owner

ericgio commented May 15, 2017

@stevenqzhang: can you elaborate a bit? What would the function do? I'd like to understand the higher-level behavior you're trying to achieve.

@stevenqzhang
Copy link

@ericgio Actually, I solved my use case with submitFormOnEnter, but I imagine this feature request would be useful for when someone wants an input box that submits on shift/ctrl+enter, or something

@ericgio
Copy link
Owner

ericgio commented May 23, 2017

I think this falls under #79, which would allow developers to set both component-specific and general input-related props. Closing this issue in favor of the other one, but let me know if I'm missing something.

@ericgio ericgio closed this as completed May 23, 2017
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

No branches or pull requests

3 participants