Skip to content

Commit

Permalink
Oops, forgot to set focus to address bar on UI thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
jankurianski committed Nov 25, 2014
1 parent 25bfc51 commit 1207e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CefSharp.WinForms.Example/FocusHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void OnTakeFocus(bool next)
// 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()));
}
}
}

0 comments on commit 1207e7b

Please sign in to comment.