Tab key doesn't work in IWebbrowser2

送分小仙女□ 提交于 2019-12-08 03:50:25

问题


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:


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.



来源:https://stackoverflow.com/questions/10553058/tab-key-doesnt-work-in-iwebbrowser2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!