W01fw00d / barbarians

A little web-browser turn-based strategy game
GNU General Public License v3.0
5 stars 4 forks source link

User keyboard actions #57

Open W01fw00d opened 3 years ago

W01fw00d commented 3 years ago

When user uses enter keyboard, closes info panel if open and endTurns if info panel is already hidden

Also, with esc/enter, user can close informative popups. Also, with enter user can confirm a popup, and with esc, cancel it.

When user uses esc, game resets.

W01fw00d commented 3 years ago

accesskey html attribute can be used for this?