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 $KEY constant #357

Open
bob2517 opened this issue Feb 13, 2025 · 0 comments
Open

Add $KEY constant #357

bob2517 opened this issue Feb 13, 2025 · 0 comments
Assignees
Labels
docs to do Documentation still needs doing before this can get released enhancement New feature or request

Comments

@bob2517
Copy link
Member

bob2517 commented Feb 13, 2025

It's currently not obvious how to get the key pressed in keyboard events, as you have to use JS in event commands to reference it ("{= o.e.data =}" or "{= o.e.key =}" depending on the event type).

Make a $KEY constant available in events that contains the string of the key pressed.

@bob2517 bob2517 added docs to do Documentation still needs doing before this can get released enhancement New feature or request labels Feb 13, 2025
@bob2517 bob2517 self-assigned this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs to do Documentation still needs doing before this can get released enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant