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

enhance: pack mods & key into a u32 as id instead of hashing #104

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

mixy1
Copy link
Contributor

@mixy1 mixy1 commented Sep 9, 2024

Change mentioned in #101.

@amrbashir amrbashir linked an issue Sep 9, 2024 that may be closed by this pull request
src/hotkey.rs Outdated Show resolved Hide resolved
@mixy1
Copy link
Contributor Author

mixy1 commented Sep 9, 2024

Yeah seems more reasonable to use 16 bits here for each value.

Amended as requested, interesting note, I found a small discrepancy on the rust docs as well in the process: https://doc.rust-lang.org/reference/attributes/type_system.html. (Code is non_exhaustive, yet this runs perfectly well, I've opened a pr for that too)

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Just clippy and fmt fixes and this should be good to go, thanks

@mixy1
Copy link
Contributor Author

mixy1 commented Sep 9, 2024

Should be fine now. Thanks!

@amrbashir amrbashir changed the title fix: Update id to be directly derived from mods + key enhance: pack mods & key into a u32 as id instead of hashing Sep 9, 2024
@amrbashir amrbashir merged commit c9913a9 into tauri-apps:dev Sep 9, 2024
8 checks passed
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.

Hash for hotkey id is unnecessary
2 participants