Alt-Gr is broken again.
Hello. I am trying to write a text editor in SDL (don't question me) and I have come to the conclusion that SDL2's TextInput Event doesn't handle Alt-Gr properly.
I tried both ibus and fcitx. On several different Desktop Environments. xkb Alt-Gr works fine. I am running EndeavourOS (ArchLinux based) and I have not tested it on other distros.
I also tried setting SDL_IM_MODULE to ibus and it didn't fix the issue.
I've also found previous posts about the bug being fixed and unfixed every so often.
Can you provide repro steps on what you're doing and what you expect to happen?
It's a bit complicated.
So I have a custom m17n layout for Hebrew where Alt-Gr maps to Bidi Controls and the Vav with Holam Haser (Both are weird Unicode details only I care about), I mapped Alt-Gr to Right Alt and then tried typing a character that's on Alt-Gr the event's text field only has the original key not the Alt-Gr modified one.
I should probably try it with layouts that aren't m17n.
I don't know of any IME that uses Alt-Gr that isn't xkb or m17n so I have no idea how to test that.
We are scoping work for the SDL 3.2.0 release, so please let us know if this is a showstopper for you.
I'm not sure what that means but I have a custom m17n layout for Hebrew that uses Alt-Gr for Bidi controls and would like to be able to type them in an SDL text editor I am writing.
Can you give instructions on how to set that up and use it?