in the QgsFileWidget
For example in some cases hidding filter details is useful to prevent
expanding combobox popup to the whole screen when long filter string is
used.
When showing a file dialog, Qt can choose to use the "system" file
dialog, which will make QgsExternalResourceWidget to loose the focus.
This patch blocks all the events that are sent to
QgsExternalResourceWidget while a dialog is shown, this way it will keep
the focus until the dialog is closed.
Sponsored by the QGIS project (qgis.org)
Fixes: #26948