[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


http://gambaswiki.org/bugtracker/edit?object=BUG.2751&from=L21haW4-

Comment #10 by Bruce STEERS:

I think it is something to do with this line adding mnuPopup to Me.Window ...
https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.form.editor/.src/TextEditor.class#L6955

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.

Respects




More information about the Bugtracker mailing list