lundi 20 avril 2015

.Net Embedded WebBrowser control is not recognizing tab and arrow key

I have a created a WinForms custom control inheriting from the WebBrowser control. I have put an ActiveX wrapper around that control so we can use in other third party applications.

When the browser control renders a page the tab and arrow keys do not work, i.e., I cannot tab from element to element on the page. If I dock the control in a managed code application it works fine (non-ActiveX mode). But as soon as I drop on a third party app (created using Delphi 7) instantiated as ActiveX control the issue surfaces.

I have found many posts surrounding similar issues but have been unsuccessful in getting the keystrokes recognized by the control. I can install a hook (WH_GETKEYBOARD) and can see the keystroke coming while in the control but have not yet been able to forward the strokes on to the actual browser. I think I am missing something here, any thoughts?

Aucun commentaire:

Enregistrer un commentaire