Closed falkTX closed 10 months ago
This fixes (arguably, I guess) the key, but there's still text entry of a control character.
On X11, that's just what the lookup stuff does. I don't know if all such events should just be filtered, or if this breaks whatever input method, or...
I checked with other modifiers, Alt and Meta still get the key properly, only Control modifier made it lose the regular keys.
Yeah, it's because the control key is a set bit, at least, uh "traditionally". In this case, I guess they should "always" (?) be filtered out, and it seems weird that the X string lookup stuff does this, but whatever I guess, that's a separate issue. Seems obvious the PuglKeyPressEvent::key shouldn't be shifted/"controlled" here regardless.
Merged as a7803c9, thanks.
In X11, using Ubuntu 22.04 KDE Plasma desktop, I could not get proper keyboard events while the control key was held down.
I added a print right after the x11 utf8 key decode, like so:
And this was the print out for Ctrl+C:
After the fix from this PR, the following is printed, and yes it then works as expected: