Yes, it does force the user to have a Latin layout in the first group. Actually it should look for the first Latin (English?) layout, but I don't know how to do that.
If you only have a non-Latin layout you can't enter URLs or login to webmail accounts so you probably don't worry about keyboard shortcuts.
I did see the GTK+ behavior but I don't know enough about Mozilla to get the information the GTK algorithm seems to need. It's a quick hack, but it's better than nothing.
Yes, it does force the user to have a Latin layout in the first group. Actually it should look for the first Latin (English?) layout, but I don't know how to do that.
If you only have a non-Latin layout you can't enter URLs or login to webmail accounts so you probably don't worry about keyboard shortcuts.
I did see the GTK+ behavior but I don't know enough about Mozilla to get the information the GTK algorithm seems to need. It's a quick hack, but it's better than nothing.