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

🔧 Refactor key modifier handling in Keycorder #675

Merged
merged 2 commits into from
Jan 22, 2025
Merged

🔧 Refactor key modifier handling in Keycorder #675

merged 2 commits into from
Jan 22, 2025

Conversation

SenpaiHunters
Copy link
Collaborator

  • Updated the logic to retrieve current modifiers by using a mapping of modifier flags to key codes.
  • Filtered out trigger keys from the current modifiers to ensure they do not exceed the key limit.
  • Fixes a bug where adding a trigger key with an arrow would cause the FN key to also be added.
  • Renamed variables for clarity and improved code readability.

- Updated the logic to retrieve current modifiers by using a mapping of modifier flags to key codes.
- Filtered out trigger keys from the current modifiers to ensure they do not exceed the key limit.
- Fixes a bug where adding a trigger key with an arrow would cause the FN key to also be added.
- Renamed variables for clarity and improved code readability.
@SenpaiHunters SenpaiHunters self-assigned this Jan 21, 2025
@SenpaiHunters SenpaiHunters linked an issue Jan 21, 2025 that may be closed by this pull request
4 tasks
Copy link
Owner

@MrKai77 MrKai77 left a comment

Choose a reason for hiding this comment

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

Just tested locally, works great! Thanks!

@MrKai77 MrKai77 merged commit 1c8f6d9 into develop Jan 22, 2025
1 check passed
@MrKai77 MrKai77 deleted the fn-fix branch January 22, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 Ghost key added when assigning keybind command
2 participants