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

Strip ~ and @ from modifiers before matching them #171

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Conversation

TTWNO
Copy link
Contributor

@TTWNO TTWNO commented Nov 28, 2022

Had an issue where a keycombo like ~control + left was registering as just the left key without modifiers. This makes sure to strip any tildes or at signs before matching the modifier to the table.

@ajanon
Copy link
Collaborator

ajanon commented Nov 28, 2022

Thanks for your contribution!

If I understand this properly, this avoids trying to match ~control instead of control as a modifier key?

@TTWNO
Copy link
Contributor Author

TTWNO commented Nov 28, 2022

Yep, that's right!

Copy link
Collaborator

@ajanon ajanon left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@TTWNO
Copy link
Contributor Author

TTWNO commented Dec 18, 2022

Polite poke

@Shinyzenith
Copy link
Member

@ajanon since I'm not well versed with the parser, would you like to merge? The code looks fine to me.

@ajanon ajanon merged commit 1277a66 into waycrate:main Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants