Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

Commit d62089d

Browse files
committed
Fix initial keyboard focus
After rearranging the configuration dialog panels, the inner authentication (PAP) is no longer the topmost panel/control. Signed-off-by: Simon Rozman <simon@rozman.si>
1 parent a6bdb42 commit d62089d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/TTLS_UI/src/TTLS_UI.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ wxTLSTunnelConfigWindow::wxTLSTunnelConfigWindow(eap::config_provider &prov, eap
6767
this->SetSizer(sb_content);
6868
this->Layout();
6969

70+
m_outer_identity->SetFocusFromKbd();
71+
7072
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(wxTLSTunnelConfigWindow::OnUpdateUI));
7173
}
7274

@@ -135,9 +137,6 @@ wxTTLSConfigWindow::wxTTLSConfigWindow(eap::config_provider &prov, eap::config_m
135137
wxEapHostConfigPanel *panel_eaphost = new wxEapHostConfigPanel(m_prov, m_cfg_eaphost, m_inner_type);
136138
m_inner_type->AddPage(panel_eaphost, _("Other EAP methods..."));
137139
#endif
138-
139-
// m_inner_type->SetFocusFromKbd(); // This control steals mouse-wheel scrolling for itself
140-
panel_pap->SetFocusFromKbd();
141140
}
142141

143142

0 commit comments

Comments
 (0)