Oops, forgot to set focus to address bar on UI thread.

This commit is contained in:
jankurianski
2014-11-25 22:47:58 +11:00
parent 25bfc512f1
commit 1207e7b522
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CefSharp.WinForms.Example
// or because they pressed Shift+Tab on the first link/field (in which case 'next' is false).
// Here we always focus on the address bar.
urlTextBox.Focus();
urlTextBox.Control.BeginInvoke(new MethodInvoker(() => urlTextBox.Focus()));
}
}
}