in the past week I worked on a game with my teacher - rEAndom game (http://reandomgame.clanweb.eu/ it is in Czech, so use the built-in google translate please :). It's a javascript, jQuery and HTML5 game. The thing I wanted to talk about is a feature in which you press TAB and the div with the score appears. I have this code on CodePen: https://filipt.cf/2OSHcS9
I have two major problems with this:
- when I press Tab and release it, the div doesn't disappear.
- even though I prevented the default behavior of the Tab key, it does weird stuff on the page