diff --git a/src/components/Board/Output/Output.container.js b/src/components/Board/Output/Output.container.js index 0155fbfaf..ea3b4827c 100644 --- a/src/components/Board/Output/Output.container.js +++ b/src/components/Board/Output/Output.container.js @@ -230,9 +230,11 @@ export class OutputContainer extends Component { }; handleRepeatLastSpokenSentence = event => { + const Z_KEY_CODE = 90; + const Y_KEY_CODE = 89; if ( - (event.ctrlKey && event.shiftKey && event.keyCode === 90) || - (event.ctrlKey && event.keyCode === 89) + (event.ctrlKey && event.shiftKey && event.keyCode === Z_KEY_CODE) || + (event.ctrlKey && event.keyCode === Y_KEY_CODE) ) { const { output } = this.props; const lastSpokenSymbol = output.findLast(