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

Combine Provider.Keydown and Provider.Keyup into Provider.Keyboard #663

Merged
merged 2 commits into from
Sep 17, 2023

Conversation

farism
Copy link
Contributor

@farism farism commented Sep 16, 2023

We spoke about this briefly on Discord, and I was going to write up an issue but figured I may as well just contribute the change since it was relatively easy.

Background info:

It would be nice to have keyboard providers be more consistent with other providers, particularly Provider.Mouse. At the moment, keyboard events are split into two providers, one for downs and one for ups.

This PR combines the providers into a single Provider, called Provider.Keyboard which has both downs and ups, which is a bit more predictable.

I also added some test utilities to Test.Html module in order to properly test these changes.

  1. Test.Html.triggerKeyDown(context : Context, selector : String, key : String)
  2. Test.Html.triggerKeyUp(context : Context, selector : String, key : String)

@Sija Sija added stdlib Standard library related refactor labels Sep 16, 2023
@Sija Sija added this to the 0.19.0 milestone Sep 16, 2023
@gdotdesign
Copy link
Member

Thanks 🙏

@gdotdesign gdotdesign merged commit 168ce02 into mint-lang:master Sep 17, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor stdlib Standard library related
Development

Successfully merging this pull request may close these issues.

3 participants