https://bugs.winehq.org/show_bug.cgi?id=37383
--- Comment #14 from Leonardo Montecchi lmontecchi@montex.org --- Comment on attachment 56729 --> https://bugs.winehq.org/attachment.cgi?id=56729 Gnome setting that causes the problem
It seems that I have found the root of this problem, at least on my system.
In gnome I had set the option to use different input sources (keyboard layouts) on different windows. This seems to be the cause of the problem. Reverting to the same input source for different windows seem to solve the issue.
You find it in gnome settings, region and language, and then options of input sources. See attached screenshot (in Italian)