Skip to content

Conversation

@gavincrawford
Copy link
Contributor

Related to #998.
This PR migrates KeyCode and ModifierKeyCode to new modules, which reduces the LoC in event.rs and makes the code a bit more friendly.

Copy link
Collaborator

@joshka joshka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this has been on my someday list to do as I prefer smaller files that reduce the cognitive load too.

Can you please move the impl blocks and unit tests too?
Also feel free to do Mouse in this same PR if you'd like - it needs to happen in the same sometime bucket.

@gavincrawford
Copy link
Contributor Author

I moved the mouse event, mouse event kind, and mouse button structures to their own file, and moved the applicable tests for key codes and modifiers to their respective modules. Are there any other impls I'm missing?

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.

2 participants