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

Better support for onkeypress #1

Open
ifedapoolarewaju opened this issue Sep 2, 2017 · 1 comment
Open

Better support for onkeypress #1

ifedapoolarewaju opened this issue Sep 2, 2017 · 1 comment

Comments

@ifedapoolarewaju
Copy link
Owner

ifedapoolarewaju commented Sep 2, 2017

Onkeypress is not so useful, because most likely one would want to identify the key that was pressed before an action is triggered, and this is currently not supported.

@jeremykohn
Copy link

jeremykohn commented Sep 10, 2019

Something like this?

<h1 no-js on-keypress-set-value=".textfield {key}>Listening for keypress.</h1>

<div class="textfield"></div>

And then the textfield div would display the key that was pressed.

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

2 participants