diff --git a/common/widgets/grid_text_button_helpers.cpp b/common/widgets/grid_text_button_helpers.cpp index e8aae3fc40..02cd4afe10 100644 --- a/common/widgets/grid_text_button_helpers.cpp +++ b/common/widgets/grid_text_button_helpers.cpp @@ -222,7 +222,7 @@ class TEXT_BUTTON_FP_CHOOSER : public wxComboCtrl public: TEXT_BUTTON_FP_CHOOSER( wxWindow* aParent, DIALOG_SHIM* aParentDlg, const wxString& aPreselect ) : - wxComboCtrl( aParent, -1, wxEmptyString, wxDefaultPosition, wxDefaultSize, + wxComboCtrl( aParent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ), m_dlg( aParentDlg ), m_preselect( aPreselect ) @@ -281,7 +281,7 @@ class TEXT_BUTTON_URL : public wxComboCtrl { public: TEXT_BUTTON_URL( wxWindow* aParent, DIALOG_SHIM* aParentDlg ) : - wxComboCtrl( aParent, -1, wxEmptyString, wxDefaultPosition, wxDefaultSize, + wxComboCtrl( aParent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ), m_dlg( aParentDlg ) { @@ -333,7 +333,7 @@ public: wxString* aCurrentDir, wxString* aExt = nullptr, bool aNormalize = false, wxString aNormalizeBasePath = wxEmptyString ) : - wxComboCtrl( aParent, -1, wxEmptyString, wxDefaultPosition, wxDefaultSize, + wxComboCtrl( aParent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ), m_dlg( aParentDlg ), m_grid( aGrid ),