Set focus on the browser window after loading a url. Also fix a warning.
Closes #13660 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -381,7 +381,7 @@ void WebFrame::UpdateState()
|
||||
m_url->SetValue( m_browser->GetCurrentURL() );
|
||||
}
|
||||
|
||||
void WebFrame::OnIdle(wxIdleEvent& evt)
|
||||
void WebFrame::OnIdle(wxIdleEvent& WXUNUSED(evt))
|
||||
{
|
||||
if(m_browser->IsBusy())
|
||||
{
|
||||
@@ -401,6 +401,7 @@ void WebFrame::OnIdle(wxIdleEvent& evt)
|
||||
void WebFrame::OnUrl(wxCommandEvent& WXUNUSED(evt))
|
||||
{
|
||||
m_browser->LoadURL( m_url->GetValue() );
|
||||
m_browser->SetFocus();
|
||||
UpdateState();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user