Skip to content

Commit

Permalink
Fix initial keyboard focus
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rozmansi committed May 13, 2020
1 parent a6bdb42 commit d62089d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/TTLS_UI/src/TTLS_UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ wxTLSTunnelConfigWindow::wxTLSTunnelConfigWindow(eap::config_provider &prov, eap
this->SetSizer(sb_content);
this->Layout();

m_outer_identity->SetFocusFromKbd();

this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(wxTLSTunnelConfigWindow::OnUpdateUI));
}

Expand Down Expand Up @@ -135,9 +137,6 @@ wxTTLSConfigWindow::wxTTLSConfigWindow(eap::config_provider &prov, eap::config_m
wxEapHostConfigPanel *panel_eaphost = new wxEapHostConfigPanel(m_prov, m_cfg_eaphost, m_inner_type);
m_inner_type->AddPage(panel_eaphost, _("Other EAP methods..."));
#endif

// m_inner_type->SetFocusFromKbd(); // This control steals mouse-wheel scrolling for itself
panel_pap->SetFocusFromKbd();
}


Expand Down

0 comments on commit d62089d

Please sign in to comment.