[Gambas-bugtracker] Bug #2751: GTK3 shortcut or focus problem

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Jun 13 02:24:44 CEST 2023


Comment #10 by Bruce STEERS:

I think it is something to do with this line adding mnuPopup to Me.Window ...

I have a successful fix (probably not the best way but...)

I add a $bNoPopup global boolean

on View_LostFocus() i destroy the menu mnuPopup

on View_GotFocus() i set $bNoPopup to True and then run the View_Menu() method that re-creates the menu and adds it to Me.Window but does not pop open the menu due to $bNoPopup

with mnuPopup being created/destroyed on focus/defocus the bug is gone but i know my fix is probably dirty.


More information about the Bugtracker mailing list