Skip to content

Translate X11 keys without modifiers - #135

Merged
Try merged 1 commit into
Try:masterfrom
kroplabeskidu:fix-shift-keyup
Oct 24, 2026
Merged

Try merged 1 commit into
Try:masterfrom
kroplabeskidu:fix-shift-keyup

Conversation

@kroplabeskidu

Copy link
Copy Markdown
Contributor

found it in OpenGothic: hold W, press shift, release W, then shift. character keeps running forever, same with A/D turning

ksym from XLookupKeysym(..,0) gets overwritten by Xutf8LookupString, with shift it's upper-case 'W', translateKey only maps a..z so it becomes K_NoKey and the key-up never reaches the game. now key is translated from the unmodified keysym, text is still from Xutf8LookupString

With shift held Xutf8LookupString returns upper-case keysym, which is not mapped,
so key release of a letter was lost
@LordKobra

Copy link
Copy Markdown
Contributor

I noticed the same issue in X11 while comparing it to the Wayland input handling. This also fixes CapsLock on.

@Try
Try merged commit 28d2614 into Try:master Oct 24, 2026
@Try

Try commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Merged, thanks!

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.

3 participants