Keyboard shortcuts not working with non-latin layouts

I use Fedora 40, and in some applications, e.g. Firefox, keyboard shortcuts such as Ctrl+Z don’t work with non-Latin keyboard layouts (russian, greek).
I’ve looked through similar issues but haven’t found any solutions. Any help would be appreciated!

Ensure your system’s keyboard layout is correctly set to your desired language.

Sorry, I’m not sure I understand what you mean. Could you elaborate a little?