Detecting focus on game element in the page

Post the link of your topic on twitter of phaser, they’ll answert.
I’ve the same problem and I think this might be the good solution?