From: Carl Hetherington Date: Tue, 4 Oct 2022 22:00:00 +0000 (+0200) Subject: Make Enter confirm OK in the language tag dialog (#2345). X-Git-Tag: v2.16.29~5 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=8833ea90cf818e87da7a8f31698a04da54987521 Make Enter confirm OK in the language tag dialog (#2345). --- diff --git a/src/wx/language_tag_dialog.cc b/src/wx/language_tag_dialog.cc index df2b74976..6fdcdba78 100644 --- a/src/wx/language_tag_dialog.cc +++ b/src/wx/language_tag_dialog.cc @@ -68,6 +68,7 @@ LanguageTagDialog::LanguageTagDialog (wxWindow* parent, dcp::LanguageTag tag) set (tag); add->Bind (wxEVT_BUTTON, boost::bind(&LanguageTagDialog::add_language, this)); + _list->Bind(wxEVT_LIST_ITEM_ACTIVATED, boost::bind(&LanguageTagDialog::EndModal, this, wxID_OK)); }