I am trying to catch some windows messages and some keypress events on the form.
f.i.
- Code: Select all
private void FormMain_KeyDown(object sender, KeyEventArgs e)
{
Console.WriteLine("k"+e.KeyCode);
}
is not called when there is a cefwebbrowser in the form, but as soon as i remove the browser it works. Checked the CefWebBrowser sample, could not figure out how to solve it?
Do i have to do offscreen rendering and paint a panel for form to not lose focus?