Comment 3 for bug 1313727

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

For the first issue, have a look at QKeyEventKeyCodeToWebEventKeyCode(…) in qt/core/browser/oxide_qt_render_widget_host_view.cc, this is where the QEvent’s key code is translated into the NativeWebKeyboardEvent’s windowsKeyCode, so you should be able to do the reverse translation.

Note that from a very quick look at your branch, you’re not actually overriding WebContentsDelegate::HandleKeyboardEvent(…) (see https://code.google.com/p/chromium/codesearch#chromium/src/content/public/browser/web_contents_delegate.h&q=HandleKeyboardEvent&sq=package:chromium&l=252).