The GNOME environment has a very nasty bug (or at least a flaw) related to keyboard layout switching that prevents you from typing for a few seconds while the keyboard layout is “switched”. It is most evident in the setting of keyboard layout change to a single button, such as ‘Pause’.
This bug occurs in distributions: Debian, Fedora (including GNOME 40), Manjaro. It is also likely to be found on other distributions, including those BSD-based.
A possible way to reproduce the bug:
Set as a key to change the layout one key, for example ‘Pause’, in the menu at the path
’ Settings -> Devices -> Keyboard -> Typing -> Switch to next input source ’
Use the command in the console
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['Pause']".
Switch the keyboard layout with the newly installed key. While switching, try to type any text.
It seems to be connected with the appearance of the information window when switching the layout, perhaps turning it off or improving it may fix this situation.
The similar topic, in particular, was raised on GitLab, but the solution has not yet been implemented.
I like the GNOME shell, but it is very unpleasant to work with bilingual texts with bugs like this. I really hope this bug is fixed.