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

WebCanvas: Add WindowHelper APIs (or similar) to trigger stopPropagation() and/or preventDefault() #39

Open
QuantumBadger opened this issue Dec 5, 2021 · 0 comments

Comments

@QuantumBadger
Copy link
Owner

It may be helpful to expose the Javascript functions stopPropagation() and/or preventDefault() for keyboard events. This will require some thought as:

  • If we want to change the APIs in a breaking way (e.g. to allow returning a boolean from keyboard callbacks), we'd need a new major version (i.e. 2.0.0)
  • We could alternatively add a function to WindowHelper, but this could only be invoked from on_key_down
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

1 participant