Skip to content
Snippets Groups Projects
Commit 428a42e6 authored by ReformCopyright's avatar ReformCopyright
Browse files

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.
parent 54f2ec99
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment