Update SpeechSynthesis.tsx

This commit is contained in:
bsu3338 2023-08-09 07:50:37 -05:00 committed by GitHub
parent 09c68d159e
commit e7d7d7325d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ function useSpeechSynthesis() {
console.log('Toggle Text-To-Speech', !isSpeechEnabled); console.log('Toggle Text-To-Speech', !isSpeechEnabled);
}; };
const handleKeyDown = (event) => { const handleKeyDown = (event) => {
if (event.shiftKey && event.altKey && event.key === 'P') { if (event.shiftKey && event.altKey && event.key === 'P') {
toggleSpeechSynthesis(); toggleSpeechSynthesis();
} }