@ -383,6 +383,16 @@ void DIALOG_FIND::OnCloseButtonClick( wxCommandEvent& aEvent )
aEvent.Skip();
}
bool DIALOG_FIND::Show( bool show )
{
bool ret = DIALOG_FIND_BASE::Show( show );
if( show )
m_searchCombo->SetFocus();
return ret;
void DIALOG_FIND::OnClose( wxCloseEvent& aEvent )
@ -68,6 +68,14 @@ public:
*/
void FindNext() { search( true ); }
/**
* The Show method is overridden to make the search combobox
* focused by default.
* wxShowEvent is not suitable here because it supports MSW
* and GTK only.
bool Show( bool show = true ) override;
protected:
void OnClose( wxCloseEvent& event ) override;
void OnCloseButtonClick( wxCommandEvent& aEvent ) override;
@ -168,6 +168,10 @@ void DIALOG_FIND::OnCloseButtonClick( wxCommandEvent& aEvent )