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

Localize keybindings with KeyboardLayoutMap #151

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

BarthPaleologue
Copy link
Owner

Not everyone uses a QWERTY keyboard: even I use AZERTY.

To have the keybinding system display the correct key for the given layout, KeyboardLayoutMap is used.

It is async to using it forces to change some function signatures.

As it is not available everywhere at the moment, I wrapped it in a function that returns an empty map when it is not supported. This will then revert to display the keybindings in QWERTY.

@BarthPaleologue BarthPaleologue added the enhancement New feature or request label Sep 16, 2024
@BarthPaleologue BarthPaleologue merged commit 9f22bc3 into main Sep 16, 2024
6 checks passed
@BarthPaleologue BarthPaleologue deleted the KeyboardLayout branch October 5, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant