I was tasked with adding some convenience to one of our applications, i.e. make sure that each control has a shortcut key and that they can be achieved by tabbing through the page.
Gui works in IE. Winform control and consists of asp.net pages, so basically it is just asp.net, always working in Internet Explorer.
My problem is that one of the pages has an embedded PDF file, for example:
<object tabindex="-1" height="273" width="663" type="Application/pdf"
data="showpdf.ashx#navpanes=0"></object>
showpdf.ashx is an httphandler that passes PDF content in response. He does not handle focus in any way.
Now, when I launch this page, the pdf application steals focus, no matter what I do, to set it to another control. And when it focuses, I cannot take it back from the keyboard. Only the mouseclick on the page will install it on another control.
I tried to set focus in the code behind OnPreRender, or in jevescript, but no luck. It seems that the http handler always starts after all the other code and focuses on the PDF object.
Any thought would be greatly appreciated.
source
share