Skip to content

🔧 Refactor key modifier handling in Keycorder#675

Merged
mrkai77 merged 2 commits into
developfrom
fn-fix
Jan 22, 2025
Merged

🔧 Refactor key modifier handling in Keycorder#675
mrkai77 merged 2 commits into
developfrom
fn-fix

Conversation

@SenpaiHunters
Copy link
Copy Markdown
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
Copy Markdown
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
@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