KeyPress event no longer works - How to troubleshoot?
Posted
#1
(In Topic #1451)
Regular

I can recreate the problem like this: File > New project > QT Application or Graphical Application > right click on FMain.form and select Event > KeyPress, and add this code:
And finally when I Run it and try to use the keyboard the KeyPress event doesn't get raised at all.
If I add a TextBox control I am able to input text to it. But even if I add this code Me.Text never changes:
Do you guys have any ideas what I could try next?
PS: I am using Gambas Stable 3.20.2
Posted
Guru

Posted
Regular

And finally when I Run it and try to use the keyboard the KeyPress event doesn't get raised at all.
(I see the same as BruceS)
Posted
Guru

Posted
Regular

The issue is clearly related to the operating system and has appeared at some point after updates of my main OS. Unfortunately the time frame is several months. I cannot pinpoint it better.
I did some further testing with my main OS. I changed the desktop environment from Budgie to Gnome. And found out that KeyPress events are bugged under X.org (both budgie and Gnome), but work fine under the Wayland version of Gnome.
This is clearly an issue I have to discus on the support forum of my main OS.
Thank you.
Posted
Regular

And once I disable the switch the remedy is instant and all KeyPress event stat working.
1 guest and 0 members have just viewed this.




