Make Enter confirm OK in the language tag dialog (#2345).
[dcpomatic.git] / 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));
+       _list->Bind(wxEVT_LIST_ITEM_ACTIVATED, boost::bind(&LanguageTagDialog::EndModal, this, wxID_OK));
 }