Dad72 Posted May 7, 2014 Author Share Posted May 7, 2014 Now I absolutely must click on the tab that it works, if I click in an empty space it works more. The problem now is the opposite. Update demo of test:Scene exemple Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 7, 2014 Author Share Posted May 7, 2014 So gwenale solution does not solve the problem, it the reverse. this solution is worse. It was better before if this problem can not be solved. Here I must click on the tab constantly, which is a big bug for my editor. Je suis désolé Deltakosh de vous embêtez avec ce problème. Si cela peut pas être corriger sans créer le même problème inverse, revenir à ce qui été fait avant est mieux. ça résous d'un coté, mais l'aggrave de l'autres. Merci encore. ceci résoudrais le problème: if(window.parent) { window.parent.addEventListener("keydown", this._onKeyDown, false); window.parent.addEventListener("keyup", this._onKeyUp, false); window.parent.addEventListener("blur", this._onLostFocus, false); } window.addEventListener("keydown", this._onKeyDown, false); window.addEventListener("keyup", this._onKeyUp, false); window.addEventListener("blur", this._onLostFocus, false); Ainsi, les deux sont gérer, si je clic l’onglet c’est window.parent qui est pris. si je clique dans un menu de mon iframe, c'est window seulement qui est utiliser. La le problème actuellement c'est que c’est l'un ou l'autres et moi il faudrait les deux. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 7, 2014 Share Posted May 7, 2014 I understand but I would like to be sure that there is no other side effect Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 7, 2014 Author Share Posted May 7, 2014 What do you mean? If the code I propose will not have side effects. because to know, I can test it. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 7, 2014 Share Posted May 7, 2014 What if there is an iframe inside an iframe ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 7, 2014 Author Share Posted May 7, 2014 this is a good question, but it is a very rare case, the use of iFrame remains current, but I never seen for a Iframe in one Iframe yet.I do not think that using an Iframe is unique, it's not obsolete HTML5 which is still used in our day.I see plenty of when using an iframe with babylon or other 3d engine.but I do not see cases iFrame in iFrame .... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 7, 2014 Share Posted May 7, 2014 Let's try with the new version Dad72 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 7, 2014 Author Share Posted May 7, 2014 Yes, this perfect. this very cool Thank you, thank you Deltakosh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.