Skip to content
Snippets Groups Projects
Forked from spnati / spnati
32373 commits behind the upstream repository.
  • ReformCopyright's avatar
    428a42e6
    Improve keyboard handling. · 428a42e6
    ReformCopyright authored
    * 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.
    428a42e6
    History
    Improve keyboard handling.
    ReformCopyright authored
    * 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.
spniSelect.js 48.94 KiB