Jump to content

addKeyCapture not working in IE


TomFiveThumbs
 Share

Recommended Posts

I have a game inside an iframe, and I've set up some key captures to stop the screen moving around

game.input.keyboard.addKeyCapture(Phaser.Keyboard.SPACEBAR);game.input.keyboard.addKeyCapture(Phaser.Keyboard.UP);game.input.keyboard.addKeyCapture(Phaser.Keyboard.DOWN);game.input.keyboard.addKeyCapture(Phaser.Keyboard.LEFT);game.input.keyboard.addKeyCapture(Phaser.Keyboard.RIGHT);

This works great in Chrome and Firefox

 

But Internet Explorer ignores these keyCapture commands and just continues to scroll the page and not pass the key press on to the game.

 

Anyone have any idea why? Besides the standard "IE is shit" reason?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...