Stephan Posted February 6, 2015 Share Posted February 6, 2015 Hi Enpu, I am encountering some problems with the backspace key in panda.js. When I press this key, the page is redirected to the previous page in the browser. I believe I posted a bugfix for this a while ago but it seems to have disappeared from the main branch: keydown: function(event) { if(event.keyCode==8){event.preventDefault();} if (!game.scene) return; if (!game.Keyboard.keys[event.keyCode]) { ....Have you removed it on purpose or am I mistaken about posting it? (I just can't remember anymore). Stephan Quote Link to comment Share on other sites More sharing options...
enpu Posted February 6, 2015 Share Posted February 6, 2015 Just add this into your keydown function on your scene:if (key === 'BACKSPACE') return true;I don't want to force it on engine code. Quote Link to comment Share on other sites More sharing options...
Stephan Posted February 6, 2015 Author Share Posted February 6, 2015 You're right, this is a much better solution.Thanx! 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.