]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/webview/webview.cpp
Update version to 2.9.4 in version.bkl too and rebake everything.
[wxWidgets.git] / samples / webview / webview.cpp
index 2563dfc5c7e4730fcccbb9a4c71d830f5303cd17..325111fa0074f93cfe26cf7cb8a3856c7e9675bb 100644 (file)
@@ -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();
 }