Comment 5 for bug 1313727

Revision history for this message
Olivier Tilloy (osomon) wrote :

I tested the branch, I had to modify the target of QCoreApplication::sendEvent to be QGuiApplication::focusObject() for anything to go through.

However, with this change, any key press event enters an infinite loop where oxide::qt::WebView::HandleKeyboardEvent(…) generates a new QKeyEvent that is being handled by oxide::qt::RenderWidgetHostView::HandleKeyEvent(…), which forwards it to the renderer, which in turn will end up calling HandleKeyboardEvent…

Unless I missed something obvious from the proposed solution, this is not going to work.