[solved] Empty XEvent in OnPreKeyEvent on Linux
Posted: Fri Jun 18, 2021 1:21 am
We have updated CEF on linux from 3.2785.1485 to 91.1.19 and now we have a problem with keyevents.
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.
This always prints "No XEvent!" for any pressed key. Any suggestions?
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?