Improve keyboard handling.
* Prevents the space key from pushing buttons at the same time as advancing the game (caused the game to advance two phases at a time if the main button had focus). * Sets focus in each modal. * Disables game key handler whenever a modal is displayed instead of toggling a variable in only some cases. * Blocks tabbing to control on the screen in the background whenever a modal is displayed. * Adds a focus indicator so you can know where you're tabbing.
Showing
- css/spni.css 10 additions, 0 deletionscss/spni.css
- index.html 1 addition, 1 deletionindex.html
- js/spniClothing.js 12 additions, 21 deletionsjs/spniClothing.js
- js/spniCore.js 24 additions, 7 deletionsjs/spniCore.js
- js/spniGame.js 4 additions, 6 deletionsjs/spniGame.js
- js/spniOption.js 8 additions, 2 deletionsjs/spniOption.js
- js/spniSelect.js 10 additions, 0 deletionsjs/spniSelect.js
Loading
Please register or sign in to comment