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

Wayland: Pass unmodified symbols to key events #101848

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

Riteo
Copy link
Contributor

@Riteo Riteo commented Jan 20, 2025

Fixes #100713
Fixes #100879

Before this change we would internationalize the keycode itself in all InputEventKeys, confusing the whole input subsystem.

Before this change we would internationalize the keycode itself in all
`InputEventKey`s, confusing the whole input subsystem.
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

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

I can reproduce the issue (as described in #100713 (comment)) and confirm it is fixed.

platform/linuxbsd/wayland/wayland_thread.cpp Show resolved Hide resolved
@Repiteo Repiteo merged commit 28b917d into godotengine:master Jan 21, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 21, 2025

Thanks!

@tdaven
Copy link
Contributor

tdaven commented Jan 27, 2025

@Riteo, For some reason this has broken the keypad for me when using Wayland on Fedora. It is always stuck in num-lock off mode event when it is on.

@Riteo
Copy link
Contributor Author

Riteo commented Jan 27, 2025

@tdaven thank you for catching this! Yeah, I can replicate that. Taking a closer look at the X11 code, it seems that the backend only filters out control and shift, but not caps lock, alt, num lock or super. That's a bit confusing.

I'll file a fixup PR ASAP!

@Riteo
Copy link
Contributor Author

Riteo commented Jan 30, 2025

@tdaven BTW I haven't forgot this, the issue got very hard. I think I found a good workaround for now in #102169. There's still some general issue; this PR should make it behave like all other platforms though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants