views:

143

answers:

1

I have an embedded IWebBrowser2 control using straight C++ (windowed, not windowless) and when someone hits the Tab key to go between fields in the browser, it jumps focus out of the web browser.

Any ideas on what I need to implement or what I could be screwing up?

Thanks!

A: 

Accelerator keystrokes like tab are handled by the message loop before being dispatched. As such a hook function needs to be called by a message loop - IOleInPlaceActiveObject::TranslateAccelerator iirc. - to give the control the chance to do keyboard navigation type things.

Chris Becke
I actually had this set up, but i wasn't properly sending it to the control. But this is definitely what was going wrong, thanks for the help!
Bob