Skip to content

Derive shifted keycode labels from active layout - #396

Open
ReeViiS69 wants to merge 1 commit into
vial-kb:mainfrom
ReeViiS69:fix/layout-aware-shifted-keycode-labels
Open

Derive shifted keycode labels from active layout#396
ReeViiS69 wants to merge 1 commit into
vial-kb:mainfrom
ReeViiS69:fix/layout-aware-shifted-keycode-labels

Conversation

@ReeViiS69

@ReeViiS69 ReeViiS69 commented Sep 2, 2026

Copy link
Copy Markdown

Shifted keycode labels in the keycode picker now reflect the currently selected keyboard layout.

For shifted aliases without an explicit layout override, the underlying basic keycode is derived using the existing keycode normalization and its shifted label is taken from the active layout. Existing explicit overrides remain unchanged and take precedence.

This only affects the visual representation; the underlying QMK keycodes and assignment behavior are unchanged.

Tests were added for default QWERTY behavior, German derived labels, Slovak explicit overrides, Japanese empty shifted states, and preservation of the underlying keycode.

It may be good followup on this pr and cleanup the overrides that are not nessesary for layout purpose. i think its better to not hardcode duplicates. but for now mostly german qwertz profits from this.

Make shifted keycode labels in the keycode picker reflect the currently selected keyboard layout.

Shifted aliases without an explicit layout override are normalized to their underlying basic keycode and use the shifted display row from the active layout.

Existing explicit shifted-keycode overrides remain unchanged and take priority.

This only affects the visual label and highlight state. The underlying QMK keycode, assignment behavior, protocol, and firmware behavior remain unchanged.

Added regression coverage for default QWERTY, German derived labels, Slovak explicit overrides, Japanese empty shifted states, and preservation of the underlying keycode.
@ReeViiS69

Copy link
Copy Markdown
Author

#398
spanish also gets better visualy, not only german.

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.

1 participant