set initial keyboard focus
This commit is contained in:
parent
dbbd6e402e
commit
1bb2da51cb
|
@ -82,6 +82,16 @@ bool WinEDA_FindFrame::Create( wxWindow* parent, wxWindowID id, const wxString&
|
|||
GetSizer()->SetSizeHints(this);
|
||||
Centre();
|
||||
////@end WinEDA_FindFrame creation
|
||||
|
||||
m_NewTextCtrl->SetFocus();
|
||||
|
||||
/* does not work here, might work if moved elsewhere,
|
||||
see void DrcDialog::OnInitDialog( wxInitDialogEvent& event )
|
||||
// deselect the existing text, seems SetFocus() wants to emulate
|
||||
// Microsoft and select all text, which is not desireable here.
|
||||
m_NewTextCtrl->SetSelection(0,0);
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue