Skip to content

Commit

Permalink
shuffle on space
Browse files Browse the repository at this point in the history
  • Loading branch information
rviscomi committed Aug 6, 2020
1 parent 3989177 commit 2df62c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gameui.js
Expand Up @@ -38,6 +38,12 @@ export default class GameUI extends UI {
return;
}

if (e.key === ' ' && e.target.value.trim().length === 0) {
e.preventDefault();
this.handleShuffleClick();
return;
}

const letterId = `letter-${e.key.toLowerCase()}`;
this.setLetterActivity(letterId, true);
});
Expand Down

0 comments on commit 2df62c6

Please sign in to comment.