Focus the data view control on the sample startup

Previously focus stayed on the log text control, which was useless and
inconvenient.
This commit is contained in:
Vadim Zeitlin
2020-12-05 14:43:53 +01:00
parent a53e69beb0
commit 3b92572eb6

View File

@@ -742,6 +742,9 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
mainSizer->Add( m_log, 0, wxGROW );
SetSizerAndFit(mainSizer);
// Allow using the control from keyboard on startup.
m_ctrl[Page_Music]->SetFocus();
}
MyFrame::~MyFrame()