Embedded pdf object steals focus and will not let it go
I was given the task of adding some usability to one of our applications, ie. make sure that every control has a shortcut key, and that they can be reached by "tabbing" through the page.
The gui runs in a IE. control on a winform, and consists of asp.net pages, so basically it is just asp.net always running in internet explorer.
My problem is that one of the pages has an embeded pdf in it, like so:
<object tabindex="-1" height="273" width="663" type="Application/pdf" data="showpdf.ashx#navpanes=0"></object>
showpdf.ashx is an httphandler, that streams the pdf contents to the response. It does not handle focus in any way.
Now when I run this page, the pdf application steals focus, no matter what I do to set it to another control. And when it takes focus, I cannot take it back with the keyboard. Only a mouseclick on the page will set it to another control.
I have tried to set focus in code behind OnPreRender, or in jevescript, but no luck. It seems that the http handler always runs after all the other code, and it sets focus on the pdf object.
Any thought would be greatly appreciated.
Unfortunately there is no real way to solve this since one cannot change the Adobe Readers behaviour. This is a known problem.