Tab key doesn't work in IWebbrowser2

1.9k Views Asked by At

I am using an ActiveX control to implement an embedded browser in an ATL app (IWebbrowser2). The problem is, that I can't jump between text fields using the tab key. Pressing the tab key just does nothing. Pressing the Enter key submits the form as expected. The problem exists e.g. on the facebook login site. How can I make the tab key work properly? Must I activate something in the ATL control to make this work?

Thank you!

Fabian

1

There are 1 best solutions below

1
On

This article describes a way how to use IWebBrowser2 in C: http://www.codeproject.com/KB/COM/cwebpage.aspx

In some comments below it, people have exactly the same problem. Seems IWebBrowser2 just has bug and does not translate keyboard messages (not just TAB, but also CTRL+C etc.) to the expected actions. In some comment there has been a workaround: http://www.codeproject.com/Messages/3558959/Re-hot-key-not-work.aspx

However I have no knowledge about ActiveX so I have no idea if this is usable in your case.