Keyboard layout changed behaviour - need pointers to fix

Hello and welcome to the Forum!

This seems to be an issue in Gtk. Users in this thread provide some solutions: