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.
For the first issue, have a look at QKeyEventKeyCod eToWebEventKeyC ode(…) in qt/core/ browser/ oxide_qt_ render_ widget_ host_view. cc, this is where the QEvent’s key code is translated into the NativeWebKeyboa rdEvent’ 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 WebContentsDele gate::HandleKey boardEvent( …) (see https:/ /code.google. com/p/chromium/ codesearch# chromium/ src/content/ public/ browser/ web_contents_ delegate. h&q=HandleKeybo ardEvent& sq=package: chromium& l=252).