Skip to content

ShortcutBuilder: make A-Z shortcuts layout-aware#646

Open
awsms wants to merge 1 commit into
easymodo:masterfrom
awsms:fix/azerty
Open

ShortcutBuilder: make A-Z shortcuts layout-aware#646
awsms wants to merge 1 commit into
easymodo:masterfrom
awsms:fix/azerty

Conversation

@awsms

@awsms awsms commented Mar 25, 2026

Copy link
Copy Markdown

Previously, shortcuts were built using a hardcoded scan-code-to-key map that assumed a QWERTY layout.
This caused issues for users with different layouts, such as AZERTY, where keys like 'A' and 'Q' were swapped in keybinds.

This change ensures that keys in the A-Z range use the actual key value provided by the event, making letter-based shortcuts layout-aware. Non-letter keys and non-Latin layouts still fallback to the native scan code map to maintain physical position consistency where appropriate.

edit: fixes #338

Previously, shortcuts were built using a hardcoded scan-code-to-key map
that assumed a QWERTY layout.
This caused issues for users with different layouts, such as AZERTY,
where keys like 'A' and 'Q' were swapped in keybinds.

This change ensures that keys in the A-Z range use the actual
key value provided by the event, making letter-based shortcuts layout-aware.
Non-letter keys and non-Latin layouts still fallback to the native
scan code map to maintain physical position consistency where appropriate.
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.

Wrong keys recognized

1 participant