summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog/cmWXMainFrame.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WXDialog/cmWXMainFrame.cxx')
-rw-r--r--Source/WXDialog/cmWXMainFrame.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WXDialog/cmWXMainFrame.cxx b/Source/WXDialog/cmWXMainFrame.cxx
index c478f83..f163f45 100644
--- a/Source/WXDialog/cmWXMainFrame.cxx
+++ b/Source/WXDialog/cmWXMainFrame.cxx
@@ -214,6 +214,8 @@ cmMainFrame::cmMainFrame(const wxString& title, const wxSize& size)
(wxObjectEventFunction) &cmMainFrame::OnBinarySelected );
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_UPDATED,
(wxObjectEventFunction) &cmMainFrame::OnBinaryUpdated );
+ this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_ENTER,
+ (wxObjectEventFunction) &cmMainFrame::OnBinaryAccepted );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_COMBOBOX_SELECTED,
(wxObjectEventFunction) &cmMainFrame::OnGeneratorSelected );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_TEXT_UPDATED,
@@ -1191,6 +1193,11 @@ void cmMainFrame::ClearCache()
}
+void cmMainFrame::OnBinaryAccepted(wxCommandEvent& event)
+{
+ std::cout << "Pressed enter in binary field" << std::endl;
+}
+
void cmMainFrame::OnBinarySelected(wxCommandEvent&)
{
if ( this->BuildDirectoryChanged() )