A chrome only problem

Recommended Posts

I uploaded the game on fgl. The game gets put in a iframe. While in firefox it works fine, in Chrome it seems to have a problem. When the keys on keyboard get pressed, nothing happens in the game, instead it is the window that moves when pressing the up and down keys. I entered the following code game.system.canvas.focus(); and game.system.canvas.setAttribute('tabindex','0'); and somehow the keys now work for the game. But the keys still move the  window as a whole. Is there a way to focus only the canvas?

Share this post

Link to post
Share on other sites

There is still smth. I only saw it now! Though it is fixed when pressing a key, the window doesn't scroll, it is not the same when you keep the button up or down pressed for some time, which makes the window scroll again.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.