Set OK button as the default one in WX_TEXT_ENTRY_DIALOG

Enables accepting the input by pressing the Return key.
This commit is contained in:
Maciej Suminski 2018-03-30 15:29:48 +02:00
parent b8c282fa6f
commit 7483a73a5f
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ WX_TEXT_ENTRY_DIALOG::WX_TEXT_ENTRY_DIALOG( wxWindow* aParent,
{
m_label->SetLabel( aFieldLabel );
m_textCtrl->SetValue( aDefaultValue );
m_sdbSizer1OK->SetDefault();
}