add F2 key for reset
This commit is contained in:
parent
05f185d70f
commit
b55d383450
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import {
|
|||
} from './modules';
|
||||
import { levels } from './levels.js';
|
||||
|
||||
const VERSION = "0.3.10";
|
||||
const VERSION = "0.3.11";
|
||||
const MOBILE_BUSY_DELAY = 250;
|
||||
const PC_BUSY_DELAY = 500;
|
||||
const TEST_MODE = false;
|
||||
|
@ -326,7 +326,7 @@ export const Minesweeper = function() {
|
|||
resetMouseEventFlags();
|
||||
|
||||
document.onkeydown = function(e) {
|
||||
if (e.keyCode == 32) {
|
||||
if (e.keyCode == 32 || e.keyCode == 113) {
|
||||
generateGrid();
|
||||
if ('preventDefault' in e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue