Keyboard focus fixed
This commit is contained in:
parent
6800de3df7
commit
eadcc5eadd
@ -231,6 +231,11 @@ public:
|
|||||||
/// Constructs a banner pannel and set the title text to product name
|
/// Constructs a banner pannel and set the title text to product name
|
||||||
///
|
///
|
||||||
wxEAPBannerPanel(wxWindow* parent);
|
wxEAPBannerPanel(wxWindow* parent);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/// \cond internal
|
||||||
|
virtual bool AcceptsFocusFromKeyboard() const { return false; }
|
||||||
|
/// \endcond
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,11 +36,14 @@ wxEAPCredentialsDialog::wxEAPCredentialsDialog(wxWindow* parent) : wxEAPCredenti
|
|||||||
|
|
||||||
void wxEAPCredentialsDialog::AddContents(wxPanel **contents, size_t content_count)
|
void wxEAPCredentialsDialog::AddContents(wxPanel **contents, size_t content_count)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < content_count; i++)
|
if (content_count) {
|
||||||
m_panels->Add(contents[i], 0, wxALL|wxEXPAND, 5);
|
for (size_t i = 0; i < content_count; i++)
|
||||||
|
m_panels->Add(contents[i], 0, wxALL|wxEXPAND, 5);
|
||||||
|
|
||||||
this->Layout();
|
this->Layout();
|
||||||
this->GetSizer()->Fit(this);
|
this->GetSizer()->Fit(this);
|
||||||
|
contents[0]->SetFocusFromKbd();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -204,6 +204,8 @@ wxEAPTTLSConfig::wxEAPTTLSConfig(eap::config_ttls &cfg, LPCTSTR pszCredTarget, w
|
|||||||
this->SetSizer(sb_content);
|
this->SetSizer(sb_content);
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
|
||||||
|
m_outer_identity->SetFocusFromKbd();
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect(wxEVT_INIT_DIALOG, wxInitDialogEventHandler(wxEAPTTLSConfig::OnInitDialog));
|
this->Connect(wxEVT_INIT_DIALOG, wxInitDialogEventHandler(wxEAPTTLSConfig::OnInitDialog));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user