Make Enter confirm OK in the language tag dialog (#2345).
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Oct 2022 22:00:00 +0000 (00:00 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 4 Oct 2022 22:00:00 +0000 (00:00 +0200)
src/wx/language_tag_dialog.cc

index df2b74976649d2d90aa951f8e8ea5d359e6290df..6fdcdba7898f039d177bce0aa104439d94e9528f 100644 (file)
@@ -68,6 +68,7 @@ LanguageTagDialog::LanguageTagDialog (wxWindow* parent, dcp::LanguageTag tag)
        set (tag);
 
        add->Bind (wxEVT_BUTTON, boost::bind(&LanguageTagDialog::add_language, this));
        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));
 }
 
 
 }