should this be fixed in upstream UWT?

This commit is contained in:
Michael Becker 2020-08-07 01:27:58 -04:00
parent 710ad842d8
commit 6306cce550
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -328,7 +328,11 @@ namespace UniversalEditor.UserInterface.Dialogs
if (aboutButtonClicked != null) dlg.AboutButtonClicked += aboutButtonClicked;
dlg.CustomOptions = coll;
dlg.Text = title;
if (dlg.ShowDialog() == DialogResult.Cancel)
DialogResult result = dlg.ShowDialog();
// FIXME: (in UWT) on GTK, closing dialog with 'esc' key results in DialogResult.None, NOT DialogResult.Cancel as on Windows!
if (result == DialogResult.Cancel || result == DialogResult.None)
{
return DialogResult.Cancel;
}