X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a178852467335ffc4724da639cb80b25da3985fa..5dec941a5ba3c08870ab4b415dd6e5be368fa0f0:/samples/webview/webview.cpp diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 2563dfc5c7..325111fa00 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -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(); }