[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3120: keypress event stops working in gtk+3
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3120: keypress event stops working in gtk+3
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2026 00:07:20 GMT
- To: bsteers@xxxxxxxxx,craig22@xxxxxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3120&from=L21haW4- Comment #1 by Bruce STEERS: I had a look into this and these are my findings... Form_Keypress actually NEVER triggers by the Form. The event gets triggered from the active child control. If there is no active control there is no Form_Keypress event. Because the test program only has one button once hidden there are no controls and only the form has focus. If that test program starts with this... Me.SetFocus Then the button does not have focus , the Form does and the Keypress event does not trigger on either toolit until you click the button to give it focus. It seems the difference between GTK and QT here is that the Button once hidden looses focus with GTK3 but not with QT. If you add Button1.Setfocus to the key event so it sets the buttons focus after hiding it then it does work on GTK. ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
| [Gambas-bugtracker] Bug #3120: keypress event stops working in gtk+3 | <bugtracker@xxxxxxxxxxxxxx> |