Skip to content

Commit

Permalink
Add Ctrl + Y key combination
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed Dec 4, 2023
1 parent 07ab0fa commit b150092
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Board/Output/Output.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ export class OutputContainer extends Component {
};

handleOutputKeyDown = event => {
if (event.ctrlKey && event.nativeEvent.shiftKey && keycode('Z')) {
console.log(event);
if (
(event.ctrlKey && event.nativeEvent.shiftKey && keycode('Z')) ||
(event.ctrlKey && keycode('Y'))
) {
this.handleRepeatLastSpokenSentence();
return;
}
Expand Down

0 comments on commit b150092

Please sign in to comment.