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

Rename ClickEvent to MouseEvent and add type() to Event #584

Merged
merged 3 commits into from
Jun 29, 2021

Conversation

yuripourre
Copy link
Contributor

@yuripourre yuripourre commented Jun 27, 2021

Rename ClickEvent to MouseEvent, following this convention/specification: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent

Also, following the same specification, adds type() to Event (it is not ideal but is useful to handle multiple events with a single EventListener).

@yuripourre yuripourre changed the title Rename ClickEvent to MouseEvent and add getType() to Event Rename ClickEvent to MouseEvent and add type() to Event Jun 28, 2021
@mirkosertic mirkosertic merged commit 34311d4 into mirkosertic:master Jun 29, 2021
@mirkosertic
Copy link
Owner

I've merged your changes to the master branch. Thank you for your contribution!

@yuripourre
Copy link
Contributor Author

@mirkosertic Thank you so much!

mirkosertic pushed a commit that referenced this pull request Nov 8, 2021
* Rename ClickEvent to MouseEvent
* Add getType method to Event
* Rename getType() to type() to follow Bytecoder's standard
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