We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25bfc51 commit 1207e7bCopy full SHA for 1207e7b
CefSharp.WinForms.Example/FocusHandler.cs
@@ -35,7 +35,7 @@ public void OnTakeFocus(bool next)
35
// or because they pressed Shift+Tab on the first link/field (in which case 'next' is false).
36
37
// Here we always focus on the address bar.
38
- urlTextBox.Focus();
+ urlTextBox.Control.BeginInvoke(new MethodInvoker(() => urlTextBox.Focus()));
39
}
40
41
0 commit comments