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

fix(inspector): handle autocomplete keydown event #338

Merged
merged 3 commits into from May 15, 2022

Conversation

MathiasWP
Copy link
Contributor

Chrome triggers a "keydown" event when autocompleting in forms, which triggers a event.getModifierState is not a function error.
This change makes sure that only keydown events with a defined key are checked.

Related issue from another GitHub repo: paperjs/paper.js#1398

Screenshot of bug from my project:
Screenshot 2022-05-15 at 13 38 51

Chrome triggers a "keydown" event when autocompleting in forms, which causes a `event.getModifierState is not a function` error.
This change makes sure that only keydown events with a defined key are checked.
@bluwy bluwy changed the title Check to prevent autocomplete bug fix(inspector): handle autocomplete keydown event May 15, 2022
@bluwy bluwy merged commit a6a8e00 into sveltejs:main May 15, 2022
@bluwy
Copy link
Member

bluwy commented May 15, 2022

Thanks!

@github-actions github-actions bot mentioned this pull request May 15, 2022
@github-actions github-actions bot mentioned this pull request Jul 13, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants