From 1207e7b522757ebfdd110bc171e316ff6ad09cdc Mon Sep 17 00:00:00 2001 From: jankurianski Date: Tue, 25 Nov 2014 22:47:58 +1100 Subject: [PATCH] Oops, forgot to set focus to address bar on UI thread. --- CefSharp.WinForms.Example/FocusHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.WinForms.Example/FocusHandler.cs b/CefSharp.WinForms.Example/FocusHandler.cs index 95fc004ac..3b0630950 100644 --- a/CefSharp.WinForms.Example/FocusHandler.cs +++ b/CefSharp.WinForms.Example/FocusHandler.cs @@ -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())); } } } \ No newline at end of file