The parameter os_event to KeyboardHandler::OnPreKeyEvent is always empty. We have added a minimal implementation to cefsimple and there's the same problem. We cannot build the cefclient example since we haven't the necessary gtk packages.
- Code: Select all
bool SimpleHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> browser, const CefKeyEvent &event, CefEventHandle os_event, bool *is_keyboard_shortcut)
{
if (!os_event)
printf("%s: No XEvent!\n", __PRETTY_FUNCTION__);
return false;
}
This always prints "No XEvent!" for any pressed key. Any suggestions?