mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Oops, forgot to set focus to address bar on UI thread.
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user