-
Notifications
You must be signed in to change notification settings - Fork 82
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
Use xkeysym for keyboard handling #378
Conversation
Could you rebase with the current latest version? |
Signed-off-by: John Nunley <[email protected]>
And I guess it's not a draft anymore at this point? |
Unfortunately I can't take it out of draft status until rust-x-bindings/xkbcommon-rs#43 is released. |
@notgull I mean, we have a release we can use, I don't see any issue with using it here given that it's better than hand rolled solution and it's already used in winit, so we have less code size upstream. |
Signed-off-by: John Nunley <[email protected]>
CHANGELOG.md
Outdated
@@ -29,6 +29,7 @@ | |||
#### Breaking Changes | |||
|
|||
- `wayland-rs` dependencies are updated to 0.30 and all APIs have changed significantly as a result | |||
- `xkeysym::Keysym` is used as a keyboard key representation instead of `u32` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should put it in the right place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't said that it's not, it just for 0.17 which was released months ago. You should move to the actual unreleased section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, fixed!
Signed-off-by: John Nunley <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
EDIT:
Looks like it's not possible to use those with match statements? 🙁
I suppose it's not a big deal as one can just drop down to raw ones for that.
Thanks! |
Replaces the
keysyms
module withxkeysym
and makes APIs takexkeysym::Keysym
instead of alternatives. See rust-windowing/xkeysym#6