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

Can't access dart:html.KeyboardEvent from EmittedEvent #14

Closed
juancastillo0 opened this issue Jul 27, 2022 · 2 comments
Closed

Can't access dart:html.KeyboardEvent from EmittedEvent #14

juancastillo0 opened this issue Jul 27, 2022 · 2 comments
Labels
enhancement Improvements

Comments

@juancastillo0
Copy link

Hi,
At the moment the problem I was having (shown here) was accessing the exact key pressed in a InputText to send a message when the user presses the "Enter" key.
I was wondering whether there is a way to access the inner _rawEvent or perhaps other API for accessing the dart:html event. Or maybe I could not find it in the docs and code?

Thank you for your work!

@hamsbrar
Copy link
Member

hamsbrar commented Jul 28, 2022

I see, we need a public getter for EmittedEvent._rawEvent

@hamsbrar hamsbrar added enhancement Improvements good first issue Good for newcomers labels Jul 28, 2022
@hamsbrar
Copy link
Member

Starting with v1.1.0, you can use EmittedEvent.nativeEvent to access HTML event.

@hamsbrar hamsbrar removed the good first issue Good for newcomers label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements
Projects
None yet
Development

No branches or pull requests

2 participants