From 8833ea90cf818e87da7a8f31698a04da54987521 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Oct 2022 00:00:00 +0200 Subject: [PATCH] Make Enter confirm OK in the language tag dialog (#2345). --- src/wx/language_tag_dialog.cc | 1 + 1 file changed, 1 insertion(+) 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)); } -- 2.30.2