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

WIP: Use keyboard-types #4026

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

WIP: Use keyboard-types #4026

wants to merge 3 commits into from

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Dec 2, 2024

Part of #2394.

Requires #4018, see the last commit for actual changes in this PR.

This is not in the W3C spec, and doesn't make sense to special-case.
This is inconsistent with the W3C spec, and while it's arguably not the
best name, it's worse that Winit is diverging and choosing a different
name.

---

Full list of changes:

KeyCode:
- SuperLeft -> MetaLeft
- SuperRight -> MetaRight
- Meta -> Super

NamedKey::Meta is swapped with NamedKey::Super.

ModifiersState::SUPER is renamed to ModifiersState::META.

ModifiersKeys::LSUPER and RSUPER are renamed to LMETA and RMETA.
@madsmtm madsmtm added S - enhancement Wouldn't this be the coolest? S - api Design and usability labels Dec 2, 2024
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.

1 participant