webplayer focus

I have a webpage that contains the webplayer, but also contains other elements that the user can click on. As soon as the focus is set to something else or to nothing at all, the webplayer stops responding to keyboard events like you would expect. The problem is that the user does not expect this and I have no way of telling him that he should click inside the webplayer to continue.

I have tried all sorts of things like this JavaScript function as an ultimate desperate attempt, but it just doesn’t work until you click inside the webplayer.

function TryToFocus() {
var obj = GetUnity();
if(obj) {
obj.contentEditable=true; // this seems to be needed for Safari.
obj.focus();
setTimeout(‘TryToFocus()’,500);
}
}

One thing I could do is forget about the focus and catch all keyboard events in javascript and then pass them unity through a function call. But that should not be the way to go i think

I know this is more of a browser thing than a unity thing, but i’d really appreciate it if someone could enlighten me and a few dozen others a bit.

Thanks.

P.S:
If I try this I get that the document has focus, and the HTML EmbedElement (which is Unity) has focus. However the keyboard does not work until i click inside the window.

if(obj) {
alert(document.activeElement);
if(obj.setActive) obj.setActive();
else obj.focus();
alert(“focus:”+document.hasFocus()+" active:"+document.activeElement);
}

Hello from 2013, still haven’t found out a clean solution to this problem.
What is the best workaround for that?