Keyboard shortcut not updated when changing keyboard layout
I have a qwerty keyboard on my laptop, but I'm using an azerty external keyboard. I can switch the layout in GNOME shell top-right dropdown menu.
When I'm typing on my azerty keyboard, ctr-a close the app instead of selecting all. Likewise, ctr-w does undo (w and z are inverted between those layouts) instead of closing the tab/window. Any non-gtk app, like firefox works like intended.
Even after a reboot, shortcuts remain inverted.
This is on both Ubuntu 18.04 and 20.04 (GTK 3.24.13).