diff --git a/client/src/templates/Challenges/video/Show.js b/client/src/templates/Challenges/video/Show.js index 809d2a76029..dad1909c6c5 100644 --- a/client/src/templates/Challenges/video/Show.js +++ b/client/src/templates/Challenges/video/Show.js @@ -8,6 +8,7 @@ import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import YouTube from 'react-youtube'; import { createSelector } from 'reselect'; +import { ObserveKeys } from 'react-hotkeys'; // Local Utilities import PrismFormatted from '../components/PrismFormatted'; @@ -165,6 +166,9 @@ export class Project extends Component { const blockNameTitle = `${blockName} - ${title}`; return ( { + this.handleSubmit(solution, openCompletionModal); + }} innerRef={c => (this._container = c)} introPath={introPath} nextChallengePath={nextChallengePath} @@ -213,29 +217,33 @@ export class Project extends Component { -
- {answers.map((option, index) => ( - - ))} -
+ +
+ {answers.map((option, index) => ( + // answers are static and have no natural id property, so + // index should be fine as a key: + + ))} +
+