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" 

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.

Need Your Help

Linux command-line call not returning what it should from os.system?

python linux python-2.7 command-line os.system

I need to make some command line calls to linux and get the return from this, however doing it as below is just returning 0 when it should return a time value, like 00:08:19, I am testing the exact...

Meteor / React / React-Bootstrap Building Failure

reactjs meteor npm react-bootstrap

I want to use Meteor with React and react-bootstrap. I've found many 'marks' of how to install but I think they are all outdated.