Skip to content

fix(linux): respect user keyboard layout via xkbcommon - #40

Merged
ploMP4 merged 3 commits into
mainfrom
layout-fix
Jun 8, 2026
Merged

ploMP4 merged 3 commits into
mainfrom
layout-fix

Conversation

@tharropoulos

Copy link
Copy Markdown
Member
  • add xkbcommon dependency behind both wayland and x11 features
  • replace the hard-coded US keymap in keycode_to_key with xkb::State::key_get_utf32 so character keys honour the active layout
  • consume Wayland Keymap/Modifiers events to build and update an xkb::State from the compositor's keymap
  • enable the xkb feature on x11rb and drive an xkb::State from the X server's keymap and XkbStateNotify updates
  • drop the manual shift_held tracking and shifted-character lookup tables in both backends
  • fix Alternative keyboard layout compatibility #38

@tharropoulos
tharropoulos requested a review from ploMP4 June 8, 2026 16:10

@ploMP4 ploMP4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

⌨️

@ploMP4
ploMP4 merged commit 03b4b5d into main Jun 8, 2026
1 check passed
@tharropoulos
tharropoulos deleted the layout-fix branch June 9, 2026 06:49
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.

Alternative keyboard layout compatibility

2 participants