Skip to content

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Dec 2, 2024

Use and re-export keyboard_types::NamedKey, keyboard_types::Code and keyboard_types::Location from the keyboard-types crate.

Unsure what the best way to re-export these is, we might for example want #[doc(inline)]?

I haven't used keyboard_types::Modifiers yet, since that has a different serde implementation, which is kind of an ABI break and might be hard for downstream to handle, see #4018 (comment). Also, it's not really compatible for other reasons, see #2394 (comment).

Part of #2394. See also rust-windowing/keyboard-types#60.

@PoignardAzur
Copy link

Looking forward to seeing this merged!

Currently Blitz is using some custom code to convert between Winit events and keyboard_type events. I expect to do the same thing in Masonry.

@madsmtm madsmtm force-pushed the madsmtm/keyboard-types branch 3 times, most recently from 53dce06 to d2c4d1b Compare March 23, 2025 12:15
@madsmtm madsmtm marked this pull request as ready for review March 23, 2025 12:16
@madsmtm madsmtm requested a review from daxpedda as a code owner March 23, 2025 12:16
@madsmtm madsmtm requested a review from kchibisov March 23, 2025 12:16
@madsmtm madsmtm force-pushed the madsmtm/keyboard-types branch from 848ffc1 to 02d3456 Compare March 23, 2025 12:20
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

I think the concern with certain keys being deprecated is resolved? e.g. Copy key.

If it's true, then it's probably fine.

@kchibisov kchibisov marked this pull request as draft March 23, 2025 12:24
@madsmtm
Copy link
Member Author

madsmtm commented Mar 23, 2025

I think the concern with certain keys being deprecated is resolved? e.g. Copy key.

Yup, I didn't deprecate those in rust-windowing/keyboard-types#49.

@madsmtm madsmtm force-pushed the madsmtm/keyboard-types branch from 02d3456 to 7651fe8 Compare April 29, 2025 11:42
@madsmtm madsmtm marked this pull request as ready for review April 29, 2025 11:42
@madsmtm
Copy link
Member Author

madsmtm commented Apr 29, 2025

I've released v0.8.0 of keyboard-types now, so this is now ready.

@madsmtm madsmtm added this to the Version 0.31.0 milestone Apr 29, 2025
@madsmtm madsmtm changed the title WIP: Use keyboard-types Use large parts of keyboard-types Apr 29, 2025
@madsmtm madsmtm force-pushed the madsmtm/keyboard-types branch from 7651fe8 to 5011462 Compare May 21, 2025 11:29
@madsmtm madsmtm force-pushed the madsmtm/keyboard-types branch from 5011462 to 410fc7a Compare June 5, 2025 10:18
@madsmtm madsmtm removed the request for review from MarijnS95 June 5, 2025 10:18
@madsmtm madsmtm removed request for jackpot51 and notgull June 5, 2025 10:18
@kchibisov kchibisov force-pushed the madsmtm/keyboard-types branch from 410fc7a to c7b2eb9 Compare June 7, 2025 07:42
@kchibisov kchibisov merged commit 2900eca into master Jun 7, 2025
57 checks passed
@kchibisov kchibisov deleted the madsmtm/keyboard-types branch June 7, 2025 07:47
@PoignardAzur
Copy link

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S - api Design and usability S - enhancement Wouldn't this be the coolest?

Development

Successfully merging this pull request may close these issues.

4 participants